-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
Design NotesNotes from our design meetingsNotes from our design meetings
Description
Notes courtesy of @RyanCavanaugh
- Error on references to literal enum members in conditions #58264
- Disallow truthy checks on enum values since they're not variable
- Yep, seems good
- Add
transpileDeclarationAPI method #58261transpileDeclaration- Emits .d.ts instead of .js like
transpileModule - Implies additional required flags, of course
- We need a minimal lib file to make everything work out for
Symbol.references - Quick discussion of symbol freshness under ID
- This is the requested "reference implementation" of a syntactic declaration emitter
- Yep, seems good
- Merge whenever (pre- or post-beta)
- Jake to review
- Emits .d.ts instead of .js like
- New
--enforceReadonlycompiler option to enforce read-only semantics in type relations #58296--enforceReadonly- Long has it been rumored
- Changes the subtype relation to disallow mutable properties to alias readonly ones
- Tweaks the definition of
as constto also "fit" the contextual type by relaxingreadonlyinferences that would have caused a failure - Most other work is in making the lib compile again, particularly
prototype - This is heckin' breaky but tends not to find many real issues since aliased mutation is rare
- Need to update the DOM generator
- What's the uptake plan?
- Hope your dependencies did a good job
skipLibCheckmight let you get away with it
- What's the plan for DT?
- Turn it on in new types
- Roll out as people are able to
- Patience!
- Maybe try automating adding
readonly"everywhere" and back it off from tests- Are we really doing 8,000 PRs??
- What about methods overwritten by a readonly property?
- Currenty allowed, but probably shouldn't be
- Confusing because methods are only mostly not mutated
Metadata
Metadata
Assignees
Labels
Design NotesNotes from our design meetingsNotes from our design meetings