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

Missing typing for sqlite3Worker1Promiser #53

Open
benjamin-wright opened this issue Nov 25, 2023 · 1 comment · May be fixed by #54
Open

Missing typing for sqlite3Worker1Promiser #53

benjamin-wright opened this issue Nov 25, 2023 · 1 comment · May be fixed by #54

Comments

@benjamin-wright
Copy link

In order to follow the recommended "wrapped worker" approach from the readme I had to add:

declare module '@sqlite.org/sqlite-wasm' {
  export function sqlite3Worker1Promiser(...args: any): any
}

immediately below the import statement, because sqlite3Worker1Promiser is not included in the index.d.ts

@tomayac tomayac linked a pull request Nov 27, 2023 that will close this issue
@tomayac
Copy link
Collaborator

tomayac commented Nov 27, 2023

I'm not much of a TypeScript person, but the any suggests there's more work to be done. Started #54. Feel free to pile on. FYI @jbaiter.

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 a pull request may close this issue.

2 participants