File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
packages/drizzle-driver/src/sqlite Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @powersync/drizzle-driver ' : patch
3+ ---
4+
5+ Fixed a typing issue related to queries returning multiple results when used in ` db.watch() ` .
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import type { DrizzleConfig } from 'drizzle-orm/utils';
2121import { toCompilableQuery } from './../utils/compilableQuery' ;
2222import { PowerSyncSQLiteSession , PowerSyncSQLiteTransactionConfig } from './sqlite-session' ;
2323
24- export type DrizzleQuery < T > = { toSQL ( ) : Query ; execute ( ) : Promise < T > } ;
24+ export type DrizzleQuery < T > = { toSQL ( ) : Query ; execute ( ) : Promise < T | T [ ] > } ;
2525
2626export class PowerSyncSQLiteDatabase <
2727 TSchema extends Record < string , unknown > = Record < string , never >
You can’t perform that action at this time.
0 commit comments