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

Incompatible types with recent @libsql/client #12

Open
akoenig opened this issue Sep 2, 2024 · 1 comment
Open

Incompatible types with recent @libsql/client #12

akoenig opened this issue Sep 2, 2024 · 1 comment

Comments

@akoenig
Copy link

akoenig commented Sep 2, 2024

Using the recent version (0.10.0) of @libsql/client leads to the following typing error when initializing the dialect via:

const dialect = new LibsqlDialect({
  client: createClient({
    url: "file:database.db"
  }),
});

Typing error:

 The types returned by 'sync()' are incompatible between these types.
    Type 'Promise<Replicated>' is not assignable to type 'Promise<void>'.
      Type 'Replicated' is not assignable to type 'void'.
        Type '{ frame_no: number; frames_synced: number; }' is not assignable to type 'void'.

Version of @libsql/kysely-libsql is 0.4.1.

@ottomated
Copy link
Contributor

This is updated in the main branch but @penberg needs to release a new version

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