I\'m working with indexeddb and typescript. My issue is that TS doesn\'t seem to be able handle the event.target.result property. Case in point:
event.target.result
req
You can also cast using the 'as' keyword like this
interface MyCustomUserInterface { _id: string; name: string; } const userID = (req.user as MyCustomUserInterface)._id ...
Cheers!