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

Docs: noImplicitReturns is true when strictNullChecks is true #3240

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from

Conversation

alexilyaev
Copy link

Why?

Looking at the docs for noImplicitReturns, it seems to yield the same error whether the option is true or false.

Searching further I found microsoft/TypeScript#51312 and tested with strictNullChecks relation.
Indeed, when setting strictNullChecks: true, it's as if we set noImplicitReturns: true.

So, I suggest adding this to the docs to avoid confusion.

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

Successfully merging this pull request may close these issues.

1 participant