Skip to content

Incompatible types with recent @libsql/client #12

Description

@akoenig

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions