how do you do in typescript to add an element to an object
localData.map((item: object) => {
item.show = false
})
i have this error
TS2339: Property ‘show’ does not exist on type ‘object’.
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
how do you do in typescript to add an element to an object
localData.map((item: object) => {
item.show = false
})
i have this error
TS2339: Property ‘show’ does not exist on type ‘object’.