Closed
Description
- Private properties should still emit type #20979 Classes using only private consumption of generic variables don't have correct .d.ts emit
- suggestion: correct types of flag booleans for RegExp literals #21290 Literalize the flags of RegExp literals
- Enum literal cannot contain concatenated string #20784 Support basic concat in string enum values
+=
onstring | undefined
should narrow its operand tostring
#20203+=
should removeundefined
from astring | undefined
value- Possible to narrow type of object literal property with strictNullChecks? #20219 Extant properties in object literals should be treated as assignments for flow control analysis purposes
- Allow static assertions #18523 Block-level asserts would still be nice
- strictNullChecks blocks safe typeof capture #16108 Remove
undefined
from domain ofx
intypeof x.y
- Ability to group errors together #15550 Group errors with same text
- Request: Allow abstract classes to implement MappedTypes that are instantiated with type parameters. #21326 Allow an (abstract?) class to implement mapped types
- Unable to destructure TypedArrays #20623 Allow destructuring of typed arrays
- Jquery error TS1209: Ambient const enums are not allowed when the '--isolatedModules' flag is provided. #20703 Allow declararation (not use) of const enums in
--isolatedModules
- Strict function check failure due to union type with matching parameters in the unioned interfaces #20714 Be more selective in inference between union types by attempting to pairwise match types in the source and target to avoid "cross contamination"
- Allow type assertions from
T
-constrained type variable to subtypes ofT
#20821 Allow assertions fromU
-constrainted type parameterT
to subtypes ofU
- narrowing in switches doesnt work on constrained unions #20375 Don't produce
never
when a discriminated union from a constraint is exhausted - Need way to express hybrid types that are indexable for a subset of properties #17867 Status check on "leftover" index signatures
- Assignments in the try-block are unconditionally assumed to have never happened in the catch-block #16682 In
catch
block, CFA wrongly assumes assignments fromtry
block must have never occurred
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
RyanCavanaugh commentedon Jan 30, 2018
Private properties should still emit type #20979 Classes using only private consumption of generic variables don't have correct .d.ts emit
private
property may not be speakable in the .d.ts fileGen<T>
to anotherGen<U>
T
(or some other type parameter)suggestion: correct types of flag booleans for RegExp literals #21290 Literalize the flags of RegExp literals
sticky(rgx: string) { return new RegExp(rgx, 's') }
Enum literal cannot contain concatenated string #20784 Support basic concat in string enum values
+=
onstring | undefined
should narrow its operand tostring
#20203+=
should removeundefined
from astring | undefined
valuestring
with non-string
s & implicit conversionsundefined
/null
?string
andnumber
string | undefined + string | undefined
currently producesstring
but is actuallyNaN
at runtime when both operands areundefined
strictNullChecks
as a breaking change? With no opt-out?JSON.stringify
does returnundefined
when passed afunction
objectstring
function
orobject
thannull
orundefined
Possible to narrow type of object literal property with strictNullChecks? #20219 Extant properties in object literals should be treated as assignments for flow control analysis purposes
Allow static assertions #18523 Block-level asserts would still be nice
strictNullChecks blocks safe typeof capture #16108 Remove
undefined
from domain ofx
intypeof x.y
Request: Allow abstract classes to implement MappedTypes that are instantiated with type parameters. #21326 Allow an (abstract?) class to implement mapped types
lateimplements
?static implements
Unable to destructure TypedArrays #20623 Allow destructuring of typed arrays
Jquery error TS1209: Ambient const enums are not allowed when the '--isolatedModules' flag is provided. #20703 Allow declararation (not use) of const enums in
--isolatedModules
const enum
sAllow type assertions from
T
-constrained type variable to subtypes ofT
#20821 Allow assertions fromU
-constrainted type parameterT
to subtypes ofU
T
might be aU
becauseT & U
existsnarrowing in switches doesnt work on constrained unions #20375 Don't produce
never
when a discriminated union from a constraint is exhausted (correction: do the complete opposite of that)Assignments in the try-block are unconditionally assumed to have never happened in the catch-block #16682 In
catch
block, CFA wrongly assumes assignments fromtry
block must have never occurredcatch
block as for "after the try block"Out of time