We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “No 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? No Sign in to your account
override
noImplicitOverride
#39669
.d.ts
async
*
abstract
#40699
--useDefineForClassFields
protected
any
yield
#41348
Originally added new functionality behind strictGeneratorTypes
strictGeneratorTypes
function* g1() { const value = yield 1; // reports an implicit any error }
Generator that yields but doesn't use the result value, no error.
function* g2() { yield 1; // no error }
If contextually typed, you're strongly typed. No error!
function* g3() { const value: string = yield 1; // result is contextually typed by type annotation of `value`, no error. }
If you have an explicit type annotation, no error
function* g4(): Generator<number, void, string> { const value = yield 1; // result is contextually typed by return-type annotation of `g3`, no error. }
Seems good!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
override
andnoImplicitOverride
#39669
.d.ts
files)override
in.d.ts
emit?async
and*
from.d.ts
files - isn't pertinent..d.ts
file..d.ts
files in old versions is always a pain..d.ts
file.override
in.d.ts
files.override
in.d.ts
files.Don't emit
abstract
members#40699
--useDefineForClassFields
protected
or whatever affectabstract
.Implicit
any
inyield
Positions#41348
Originally added new functionality behind
strictGeneratorTypes
Generator that yields but doesn't use the result value, no error.
If contextually typed, you're strongly typed. No error!
If you have an explicit type annotation, no error
Seems good!
The text was updated successfully, but these errors were encountered: