When I create this type on Typescript:
type TYPE_STORAGE<T extends { [k: string]: any }> = { [k: keyof T | 'all']: number };
or
type TYPE_STORAGE_2<T> = { [k: keyof T | 'all']: number };
the parser answers to me,
An index signature parameter type must be either 'string' or 'number'
I don't understand, what this said to me. Thanks for your answers!