mattpocock / ts-error-translator

VSCode extension to turn TypeScript errors into plain English
https://ts-error-translator.vercel.app
2.36k stars 91 forks source link

Translation request for 1268 #202

Closed yarongon closed 1 year ago

yarongon commented 1 year ago

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:

type MyType = {
    a: string
}

let mapMyTypeToNum: { [key: MyType]: number} = {}