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

Fix missing idbtrans in transaction #1985

Merged
merged 1 commit into from
May 9, 2024

Conversation

tobiasBora
Copy link
Contributor

@tobiasBora tobiasBora commented May 9, 2024

Typescript complains that idbtrans does not exist, even if the class actually defines it:

$ cat src/classes/transaction/transaction.ts
…
/** Transaction
 * 
 * https://dexie.org/docs/Transaction/Transaction
 * 
 **/
export class Transaction implements ITransaction {
…
  idbtrans: IDBTransaction;
…

This fixes this issue. Credit goes to https://stackoverflow.com/questions/78453173/typescript-pretents-foo-is-not-in-type-bar-while-it-is-how-to-debug/78453320#78453320

@dfahlander dfahlander merged commit a5519e5 into dexie:master May 9, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants