ts7053 error(feat : string타입의 객체key 사용)

bebrain·2023년 6월 11일
0
post-custom-banner

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


참조 : https://soopdop.github.io/2020/12/01/index-signatures-in-typescript/
post-custom-banner

0개의 댓글