https://github.com/pauldraper/ts-bazel-infer-import
https://github.com/pauldraper/ts-bazel-infer-import
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pauldraper/ts-bazel-infer-import
- Owner: pauldraper
- Created: 2019-09-02T15:27:12.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-10T11:15:05.000Z (about 5 years ago)
- Last Synced: 2025-02-26T15:14:08.029Z (over 1 year ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TS Bazel Infer Import
## ts
```sh
yarn install
node_modules/.bin/tsc -p example
```
target/example/example.d.ts is
```ts
export declare const result: import("rxjs").Observable;
```
## Bazel
```sh
bazel build example:ts
```
Output is
```
Compiling TypeScript (devmode) //example:ts failed (Exit 1)
example/example.ts:3:14 - error TS2742: The inferred type of 'result' cannot be named without a reference to '../external/npm/node_modules/rxjs'. This is likely not portable. A type annotation is necessary.
3 export const result = of(1);
```