https://github.com/pauldraper/ts-infer-import
https://github.com/pauldraper/ts-infer-import
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pauldraper/ts-infer-import
- Owner: pauldraper
- Created: 2019-09-02T16:15:47.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-02T18:41:33.000Z (almost 7 years ago)
- Last Synced: 2025-01-09T07:35:29.485Z (over 1 year ago)
- Language: TypeScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TS Infer Import
## TypeScript 3.1
```sh
node node_modules/typescript-3.1/lib/tsc.js -p example
```
Succeeds.
## TypeScript 3.4
```sh
node node_modules/typescript-3.4/lib/tsc.js -p example
```
Errors.
```
example/example.ts:3:14 - error TS2742: The inferred type of 'example' cannot be named without a reference to '../external/node_modules/example-lib'. This is likely not portable. A type annotation is necessary.
3 export const example = exampleLib();
~~~~~~~
```