Repository navigation
Closed
Labels
Design NotesNotes from our design meetingsNotes from our design meetings
Description
- PR Flag non-nullable functions in
ifstatements as errors #32802 - flag non-calls to boolean functions inifexpressions - PR Add es3.d.ts #28372 - add ES3.d.ts
- add stricter Omit helper type #30825 Add stricter omit type
- Allow
emitDeclarationandisolatedModulestogether #29490isolatedModulesis what? - (myriad) Behavior when running
tscwith an explicit file list when a tsconfig.json is present - Official TypeScript badge for READMEs #31569 Official README badges
- Function interface doesn't type check return value for extra keys #12632 / Don't widen return types of function expressions #241 Return type widening of function expressions
- Proposal: covariance and contravariance generic type arguments annotations #10717 Explicit co/contra variance annotations
- ts-ignore should error if next line is not an error #29394 Strict
ts-ignore - Suggestion: add excludeTypeRoots to tsconfig #18588
excludeTypesin tsconfig.json - Add a --strictNaNChecks option, and a NaN / integer / float type to avoid runtime NaN errors #28682 / Divide by zero Typechecking #21955
NaNtyping - Extending string-based enums #17592 String enum composition
- Suggestion: Add abstract static methods in classes and static methods in interfaces #14600 Abstract static methods in classes
- (?) LS plugins from commandline
- Set TypeScript compiler's base/working directory #25430 Set tsc working directory / general config algebra
- Proposal: quoted and unquoted property names distinct #14267 Distinguish quoted and unquoted property names
- Add
--inlineConstsflag #6805--inlineConsts - narrowing in switch doesn't work with non-union types #16976 Narrowing of non-unions / producing
neverin false arms of tautological comparisons
Reacted by AnyhowStep, Kyle Albert, Bazyli Brzóska, Maru Alka, Sean Vieira, Dirk, Giovanni Gonzaga, Oliver Anteros, 👑 Edward Sammut Alessi, therealmikz and 1 more
Metadata
Metadata
Assignees
Labels
Design NotesNotes from our design meetingsNotes from our design meetings
Activity
falsandtru commentedon Aug 19, 2019
Note that a solution #18588 (comment) is propose and it would be better than
excludeTypes.RyanCavanaugh commentedon Aug 19, 2019
ifstatements as errors #32802 - flag non-calls to boolean functions inifexpressions!!to suppressExcludedoesn't constrain eitherOmitwithout the constraint is perfectly cromulentemitDeclarationandisolatedModulestogether #29490isolatedModulesis what?tscwith an explicit file list when a tsconfig.json is present--ignore-tsconfigflag to suppress the warningT[keyof T]getThing(k: keyof super T)?ts-ignorets-expect-errorfatcerberus commentedon Aug 20, 2019
I've been trying to figure this one out for ages. The handbook says:
But that's kind of vague: Modules are already self-contained (modulo imported dependencies)--that's what makes them modules! I also remember reading somewhere that this option disables module resolution (like a "single-file transpiler mode"), but that's not true either: it's possible to import types from other files and have that work just fine.
Then there's VSCode which describes this option thus:
Which is just... what.
RyanCavanaugh commentedon Aug 20, 2019
The new Handbook will have a much more accurate description.
VS Code's description is... accurateish. Very accurateish. 😉
fatcerberus commentedon Aug 20, 2019
Okay, fair, but clearly it does more than just that, considering how many things it disables in its wake (const enums, namespaces, etc.)
RyanCavanaugh commentedon Aug 21, 2019
Allow tsconfig.json when input files are specified: #27379
RyanCavanaugh commentedon Aug 21, 2019
Bruce Pascoe (@fatcerberus) here ya go! https://microsoft.github.io/TypeScript-New-Handbook/reference/compiler-options/#isolatedmodules
Validark commentedon Sep 2, 2019
I really want to see NaN typing and NaN checking! That would be fantastic!