I encountered an issue while trying to destructure some code. The error message
Property 'name' does not exist on type '{}'.
is appearing. I thought about using let user:any = {};
as a workaround, but that goes against the eslint rule of the application. Is there another solution available?
let user = {};
user.name = 'John';