DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Tanmay Khatri
Tanmay Khatri

Posted on

Typescript : Objects : Index Signatures

Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ a: string; }'.
No index signature with a parameter of type 'string' was found on type '{ a: string; }'.ts(7053)

If you have encountered an error like above then you probably need to the Index Signature in your Object Interface.

Top comments (0)

CSS margins

Stop by this week's meme thread!