aklinker1 / webext-core

Collection of essential libraries and tools for building web extensions
https://webext-core.aklinker1.io
MIT License
116 stars 13 forks source link

Using flatten promise on idb transaction function results in lint error #29

Open devnomic opened 1 year ago

devnomic commented 1 year ago

Using flatten promise on idb put works, but not working on idb transaction, perhaps because transaction has 2 declarations?

Screenshot

Screenshot 2023-05-06 at 12 03 32

idb transaction

Screenshot 2023-05-06 at 12 03 54

If i use idb directly there is no linting error.

aklinker1 commented 1 year ago

I don't know how to solve this with types. For now, I would just say to use the promise instead of the flattened promise in cases like this.

If anyone knows how to resolve this issue with the types, I'd appreciate a PR.