We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b80183a commit fab7cb3Copy full SHA for fab7cb3
packages/powersync-op-sqlite/src/db/OPSQLiteConnection.ts
@@ -64,12 +64,12 @@ export class OPSQLiteConnection extends BaseObserver<DBAdapterListener> {
64
65
async getAll<T>(sql: string, parameters?: any[]): Promise<T[]> {
66
const result = await this.DB.execute(sql, parameters);
67
- return result.rows ?? [];
+ return (result.rows ?? []) as T[];
68
}
69
70
async getOptional<T>(sql: string, parameters?: any[]): Promise<T | null> {
71
72
- return result.rows?.[0] ?? null;
+ return (result.rows?.[0] as T) ?? null;
73
74
75
async get<T>(sql: string, parameters?: any[]): Promise<T> {
0 commit comments