I have next enum:
export enum Suite {
Spade = '♠',
Heart = '♥',
Club = '♣',
Diamond = '♦',
}
Trying to implement loop, but getting error
for (let suite in Suite) {
console.log('item:', Suite[suite]);
}
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'typeof Suite'. No index signature with a parameter of type 'string' was found on type 'typeof Suite'.ts(7053)
How can I fix that?
