We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a547fc6 commit ed5bb49Copy full SHA for ed5bb49
.changeset/honest-mugs-yawn.md
@@ -0,0 +1,5 @@
1
+---
2
+'@powersync/drizzle-driver': patch
3
4
+
5
+Fixed a typing issue related to queries returning multiple results when used in `db.watch()`.
packages/drizzle-driver/src/sqlite/db.ts
@@ -21,7 +21,7 @@ import type { DrizzleConfig } from 'drizzle-orm/utils';
21
import { toCompilableQuery } from './../utils/compilableQuery';
22
import { PowerSyncSQLiteSession, PowerSyncSQLiteTransactionConfig } from './sqlite-session';
23
24
-export type DrizzleQuery<T> = { toSQL(): Query; execute(): Promise<T> };
+export type DrizzleQuery<T> = { toSQL(): Query; execute(): Promise<T | T[]> };
25
26
export class PowerSyncSQLiteDatabase<
27
TSchema extends Record<string, unknown> = Record<string, never>
0 commit comments