Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
devnomic opened this issue May 6, 2023 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@devnomic
Copy link

devnomic commented May 6, 2023

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
Copy link
Owner

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.

@aklinker1 aklinker1 added bug Something isn't working help wanted Extra attention is needed labels May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants