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? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “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? Sign in to your account
let x: Action[] = [ { type: 1, payload 42 }, { type: 2, payload 42 }, { type: 3, payload 42 }, // ... ];
Action
O(n * m)
unique
Eliminate well known symbols as a concept in the checker and rely on unique symbols #42543
Expunge the concept of well-known symbols from the checker #24738
Came up again with Expunge the concept of well-known symbols from the checker #24738 (comment)
Seems to help bring us to where we'd have wanted to be if we had unique symbol 5 years ago.
Seems like we only didn't bring this in because other work came up (e.g. lib references)
unique symbol is no panacea, nominal results.
unique symbol
keyof works now too which is neat!
keyof
Symbol.for is one last place where unique symbol still causes issues.
Symbol.for
Conclusion: drive for 4.3.
Modifier for bitflag enums #42521
Add 'bitflags' modifier for enum. #42533
Not opposed to adding a restriction of some sort - but opposed to adding a keyword.
enum
Funny thing about the PR is that we already have union enums and "classic" enums.
number
Today you have to be careful because writing anything other than a literal expression throws you out of union enum land.
Returning to syntax, opportunity to find syntax after name, before brace.
Just want a way to disable bit-flagginess/numeric behavior.
Don't necessarily want to take this PR, should consider a "strict enum mode".
More thought needed.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Big arrays of discriminated unions
Action
.O(n * m)
, n = number of elements, m = number of union constituentsConsider Well-Known Symbols To Be
unique
Eliminate well known symbols as a concept in the checker and rely on unique symbols #42543
Expunge the concept of well-known symbols from the checker #24738
Came up again with Expunge the concept of well-known symbols from the checker #24738 (comment)
Seems to help bring us to where we'd have wanted to be if we had unique symbol 5 years ago.
Seems like we only didn't bring this in because other work came up (e.g. lib references)
unique symbol
is no panacea, nominal results.keyof
works now too which is neat!Symbol.for
is one last place whereunique symbol
still causes issues.Conclusion: drive for 4.3.
Bitflag Enums and Non-Union Enums
Modifier for bitflag enums #42521
Add 'bitflags' modifier for enum. #42533
Not opposed to adding a restriction of some sort - but opposed to adding a keyword.
enum
is a reserved word for JS, want to make sure that we're not going in an incompatible direction.Funny thing about the PR is that we already have union enums and "classic" enums.
number
is not assignable to any union enum types.Today you have to be careful because writing anything other than a literal expression throws you out of union enum land.
Returning to syntax, opportunity to find syntax after name, before brace.
Just want a way to disable bit-flagginess/numeric behavior.
Don't necessarily want to take this PR, should consider a "strict enum mode".
More thought needed.
The text was updated successfully, but these errors were encountered: