Repository navigation
Suggestion Backlog Slog, 5/16/2016 #8628
Copy link
Copy link
Closed
Labels
Design NotesNotes from our design meetingsNotes from our design meetings
Description
Activity
- addedDesign NotesNotes from our design meetingsNotes from our design meetings
on May 16, 2016 RyanCavanaugh commented
on May 16, 2016 MemberAuthorMore actionsRest/spread for objects
- Will this keep its current semantics?
- Would need to do this under a flag because it might change
- Lots of work to do this in the type system
- Not room in 2.0 schedule
- JSDoc autocomplete should not apply to classes #7325 Do not apply JSDoc template to classes
- User would prefer one line
- 👎 no consensus on what people want in practice
- Type Merging between extends and intersection #8606 Type Merging between extends and intersection
- Signatures need to be sorted, but we have no idea how
- Lots of ad hoc rules here in the past
- 👍 stable-sort by how many string literals exist
- add a flag to disable () => void being subtype of () => a #8584 Flag to make
() => voidnot subtype of() => {}- See also
Result value must be usedcheck #8240Result value must be usedcheck - Rust has 'must_use' annotation
- If we had attributes this would be neat
- But we don't
- (Go back to 1)
- Revisit if we get attriubtes
- See also
- Make default JSX mode "react" #8529 Make ".tsx" extension optional
- Not clear on scenario (is complaint that there two steps, or the extension itself?)
- 👍 Change the default JSX emit to 'react'
- Should error when unwrapping an unwrappable variable #8453 Should error when unwrapping an unwrappable variable
- No-op is suspicious
- Dangerous because now improving control flow analysis could be an unexpected breaking change
- 👎 We don't think this should be an error
- noImplicitAny checks don't work for a setter parameter of Object.defineProperty #8410 noImplicitAny checks don't work for a setter parameter of Object.defineProperty
- 👎 Working as intended
- Support overriding type-checking compile flags on a per file basis #8405 Support overriding type-checking compile flags on a per file basis
- Mohamed to follow up, refer to reply to Cyrus's comment in Non-nullable types #7140
- Allow passing additional SupportedExtensions to support React Native .android and .ios module loading #8328 Allow passing additional SupportedExtensions to support React Native .android and .ios module loading
- Make a .d.ts and use
export implements foo
- Make a .d.ts and use
- Should awaiting a non-Promise value be an error? #8310 Should awaiting a non-Promise value be an error?
- According to the spec, you can
awaita non-Promise value and that returns the value - 👎 Works according to ES spec (which could have easily chosen this to be an error, but didn't)
- According to the spec, you can
- Support final classes (non-subclassable) #8306 Support final classes (non-subclassable)
finalis classically a perf optimization, not truly a type system thing
- Always allow code before super call when it does not use "this" #8277 Always allow code before super call when it does not use "this"
- We can use flow analysis to do this now
- Committed (post-2.0)
- Compiler should rewrite namespaced types found in JSDoc #8120 Compiler should rewrite namespaced types found in JSDoc
- Too complex (emitter currently does nothing to comments)
- Question: Why does "this" not have a type in function assigned to class prototype #8024 Provide a "this" type in function assigned to class prototype
- We do this for JavaScript
- Let's do it for TS too
- 👍 should be tiny change
- Suggestion: execute property initializer expressions at the expected time #7738 Execute property initializer expressions in the correct scope
- 👍 Accepting PRs or we can handle post-2.0
- Cannot access properties of type parameter constrainted by 'any' #7700 Cannot access properties of type parameter constrainted by 'any'
- Treat as bug
- option to control allowed source version with newer TS version #7573 option to control allowed source version with newer TS version
- Too complex
throwin arrow functions forces avoidreturn type #7538throwin arrow functions forces avoidreturn type- This ought to work
- Plumb through
noreturn - Assign to Anders
- Cannot use 'this' type in type argument on base types #7289 Cannot use 'this' type in type argument on base types
- Out of time
As always, thanks for slogging!
Reacted by jwbay- locked and limited conversation to collaborators
on Jun 19, 2018
Metadata
Metadata
Assignees
Labels
Design NotesNotes from our design meetingsNotes from our design meetings
Preslog: Rest/spread for objects
() => voidnot subtype of() => {}Result value must be usedcheck #8240Result value must be usedcheckthrowin arrow functions forces avoidreturn type #7538throwin arrow functions forces avoidreturn type