tursodatabase / kysely-libsql

Kysely dialect for sqld
MIT License
51 stars 8 forks source link

Incompatible types with recent `@libsql/client` #12

Open akoenig opened 2 months ago

akoenig commented 2 months ago

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 commented 2 months ago

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