https://github.com/unstubbable/skip-lib-check-test
Testing the TypeScript compiler option skipLibCheck.
https://github.com/unstubbable/skip-lib-check-test
Last synced: 3 months ago
JSON representation
Testing the TypeScript compiler option skipLibCheck.
- Host: GitHub
- URL: https://github.com/unstubbable/skip-lib-check-test
- Owner: unstubbable
- Created: 2021-02-16T19:45:01.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-16T19:45:12.000Z (over 4 years ago)
- Last Synced: 2025-02-06T03:24:03.777Z (5 months ago)
- Language: TypeScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Testing the recommended TypeScript compiler option `skipLibCheck`.
Run `yarn install` after cloning the repo.
Then run `yarn test` to see the expected compile error.
After that run `yarn test --skipLibCheck`. The compile error is gone
The [documentation](https://www.typescriptlang.org/tsconfig#skipLibCheck) says:
> TypeScript will type check the code you specifically refer to in your app’s
> source code.What it does not mention, but should not be surprising now that I think about
it, is that any library code that can not be compiled, but your app's source
code refers to, will be regarded as `any`. Even with `noImplicitAny` set to
`true` this does not yield a compile error.