Replies: 1 comment
-
Mind sharing which example you are seeing this error on? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to avoid type errors
The code is an example in https://react-spectrum.adobe.com/react-spectrum/TableView.html
Error message:Element implicitly has type "any" because an expression of type "Key" cannot be used for index type "{ id: number; name: string; date: string; type: string; }".Could not find an index signature with an argument of type 'string' on type '{ id: number; name: string; date: string; type: string; }'.
Beta Was this translation helpful? Give feedback.
All reactions