interface Listeners {
[propName: symbol]: Listener[];
};
the above code prompts
[ts] Index signature parameter must be of type "string" or "number". [1023]
how to express that the key value of an object is of type symbol
interface Listeners {
[propName: symbol]: Listener[];
};
the above code prompts
[ts] Index signature parameter must be of type "string" or "number". [1023]
how to express that the key value of an object is of type symbol