kysely-libsql
kysely-libsql copied to clipboard
Incompatible types with recent `@libsql/client`
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.
This is updated in the main branch but @penberg needs to release a new version
REOPEN PLS
@yigsvnsla I'm maintaining a fork at https://www.npmjs.com/package/kysely-libsql in the meantime
Plese fix this issue.
Any Update ?
Use: https://www.npmjs.com/package/kysely-libsql or This: https://turso.tech/blog/introducing-turso-serverless-javascript-driver
I've used serverless driver and solved my problem.
I've also faced this issue. What is holding back the new release? BR