How to fix Index signature must be a string, number, symbol, or template literal type in TypeScript | DevErrors