Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error with --strict-null-checks enabled. #3

Closed
mhverbakel opened this issue Aug 29, 2017 · 0 comments
Closed

Compile error with --strict-null-checks enabled. #3

mhverbakel opened this issue Aug 29, 2017 · 0 comments

Comments

@mhverbakel
Copy link

mhverbakel commented Aug 29, 2017

Strict null checking was added by microsoft/TypeScript#7140. This allows developers to make their code more type-safe by explicitly defining null or undefined as a type option.

This library gives me an compile error if strict null checking is enabled:

node_modules/await-semaphore/index.ts(12,13): error TS2532: Object is possibly 'undefined'.

Steps to reproduce

  1. Create a typescript 2.0 project with strict null checking enabled
  2. Add await-semaphore as a dependency
  3. Run tsc.
notenoughneon added a commit that referenced this issue Sep 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant