diff --git a/.changeset/honest-mugs-yawn.md b/.changeset/honest-mugs-yawn.md new file mode 100644 index 00000000..6dd789b5 --- /dev/null +++ b/.changeset/honest-mugs-yawn.md @@ -0,0 +1,5 @@ +--- +'@powersync/drizzle-driver': patch +--- + +Fixed a typing issue related to queries returning multiple results when used in `db.watch()`. diff --git a/packages/drizzle-driver/src/sqlite/db.ts b/packages/drizzle-driver/src/sqlite/db.ts index e9276a4f..af726863 100644 --- a/packages/drizzle-driver/src/sqlite/db.ts +++ b/packages/drizzle-driver/src/sqlite/db.ts @@ -21,7 +21,7 @@ import type { DrizzleConfig } from 'drizzle-orm/utils'; import { toCompilableQuery } from './../utils/compilableQuery'; import { PowerSyncSQLiteSession, PowerSyncSQLiteTransactionConfig } from './sqlite-session'; -export type DrizzleQuery = { toSQL(): Query; execute(): Promise }; +export type DrizzleQuery = { toSQL(): Query; execute(): Promise }; export class PowerSyncSQLiteDatabase< TSchema extends Record = Record