Skip to content

example code not working due to invalid typings #57

Closed
@BasieP

Description

@BasieP
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..

Activity

tomayac

tomayac commented on Jan 8, 2024

@tomayac
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @tomayac@BasieP

        Issue actions

          example code not working due to invalid typings · Issue #57 · sqlite/sqlite-wasm