Allow index [key: string] to be typed - only allow certain strings for the index #32489
Closed
5 tasks done
Labels
Duplicate
An existing issue was already created
Search Terms
keyof arrays typeof index
Suggestion
Examples
I am trying to create a type for this:
the key with XXX should fail because it's not in the list:
Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: