Can't use alias of string as an index signature parameter type · Issue #7374 · microsoft/TypeScript

The compiler requires an index signature parameter to be "string" or "number" specifically, and doesn't allow type aliases. type CustomId = string; interface Works { [custom...