Skip to content

example code not working due to invalid typings #57

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

Closed
BasieP opened this issue Jan 3, 2024 · 1 comment
Closed

example code not working due to invalid typings #57

BasieP opened this issue Jan 3, 2024 · 1 comment

Comments

@BasieP
Copy link

BasieP commented Jan 3, 2024

const _promiser = sqlite3Worker1Promiser({
        onready: () => {
          resolve(_promiser);
        },
      });

error TS2345: Argument of type '{ onready: () => void; }' is not assignable to parameter of type 'InitOptions'.

InitOptions doesn't have an 'onready' method..

@tomayac
Copy link
Collaborator

tomayac commented Jan 8, 2024

sqlite3Worker1Promiser doesn't have types yet, but work is in progress to add them in the context of #54, so I'm closing the present issue in favor of that.

@tomayac tomayac closed this as completed Jan 8, 2024
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

No branches or pull requests

2 participants