-
Notifications
You must be signed in to change notification settings - Fork 12.4k
New issue
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
Design Meeting Notes, 8/28/2020 #40309
Labels
Design Notes
Notes from our design meetings
Comments
#40308 for the PR utilizing |
I saw that there is now helpers for Uppercase, Lowercase, etc... This would be handy for Database types |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Key Mapping in Mapped Types
#12754
"Key mapping" is really 3 features:
String concat types
Join
operator that takes a bunch of literals and separates them by a delimiter.Join<["a", "b", "c"], ","
->"a,b,c"
Split
using inference; string splitting uses non-greedy matching.Split<"a,b,c", ",">
->["a", "b", "c"]
Name clause for mapped types
never
, and that removes a keyI * Have to make sure that's the behavior (bug in current implementation)
0
and the string key"0"
.Operators: uppercase, lowercase, capitalize, uncapitalize
Previously had an error on large unions.
`${Digit}${Digit}${Digit}${Digit}${Digit}`
Can imagine a prefix in these strings the same way find/replace works in editors
\u${SomeType}
How do we feel about
as
in key mapping?as
looks like it is doing something with the constraint of the mapped type (the right side of thein
)customDescriptionGenerator
https:/microsoft/vscode-js-debug/blob/a04cff2e4c2b39616d4e1b813f41a40643b9fa76/OPTIONS.md#customdescriptiongenerator-1
Node
s,Symbol
s,Signature
s,FlowNode
s.The text was updated successfully, but these errors were encountered: