-
Notifications
You must be signed in to change notification settings - Fork 89
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
ConfigService::get is not type-hinting correctly its return value #573
Comments
In the next major release, we'll add the |
This V8 sounds so promising!!! |
Maybe can we add a ConfigModule.forRoot({
defaultInfer: true
}) |
Type inference cannot be controlled by setting flags in the configuration as it doesn't happen at runtime |
Consider the following use case:
It is expected that foo is resolved by TypeScript type checker as a number. But it is actually resolved as
any | undefined
.get
should have the following signature:The text was updated successfully, but these errors were encountered: