String keys
The keys of an object are always represented as a string
. TypeScript will allow you to use certain other types like number
as the key type, but the underlying value is always a string.
Loading TypeScript...
The keys of an object are always represented as a string
. TypeScript will allow you to use certain other types like number
as the key type, but the underlying value is always a string.