I am super new to javascript and typescript and I am working on a kanban board React native project from a youtube video.
Video link: https://www.youtube.com/watch?v=Vqa9NMzF3wc&t=1338s
I am getting the error mentioned in the header and I will paste a screenshot of the code sections :
While hovering over 'item' on line 57 of the second screenshot VSCode shows what that object is as the following:
(parameter) item: {id: string;content: string;}[]
I believe this means that it is a json object with 2 attributes 'id' and 'content', so I have no clue why that error is being thrown.
Kindly help me out !