Closed yarongon closed 1 year ago
An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type.
Please provide other information that led to this error and any specific questions you have about it: Here's a minimal example:
type MyType = { a: string } let mapMyTypeToNum: { [key: MyType]: number} = {}
Error Text
An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type.
Supporting Information
Please provide other information that led to this error and any specific questions you have about it: Here's a minimal example: