-
-
Notifications
You must be signed in to change notification settings - Fork 543
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
Proposal: Dictionary #33
Comments
IMO that is not much difference than let v1: Record<string, number>;
let v2: Record<string, string>;
let v3: Record<string, any>; |
I agree with @unional, What if I want a dictionary where keys are numbers? In theory all object keys will be converted to strings in JS anyway, but TS at the type system level allows for objects having numeric indexes. |
I'm mildly against this for two reasons:
|
Same here, |
I'm declining this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Define
Usage
This is a very common and useful definition, also mentioned in the official documentation.
The text was updated successfully, but these errors were encountered: