diff --git a/packages/web/src/db/PowerSyncDatabase.ts b/packages/web/src/db/PowerSyncDatabase.ts index d834c1e4..4cfa6499 100644 --- a/packages/web/src/db/PowerSyncDatabase.ts +++ b/packages/web/src/db/PowerSyncDatabase.ts @@ -6,6 +6,8 @@ import { AbstractPowerSyncDatabase, DBAdapter, DEFAULT_POWERSYNC_CLOSE_OPTIONS, + isDBAdapter, + isSQLOpenFactory, PowerSyncDatabaseOptions, PowerSyncDatabaseOptionsWithDBAdapter, PowerSyncDatabaseOptionsWithOpenFactory, @@ -82,9 +84,7 @@ export type WebPowerSyncDatabaseOptionsWithSettings = WithWebSyncOptions< WithWebFlags> >; -export type WebPowerSyncDatabaseOptions = WithWebSyncOptions< - WithWebFlags> ->; +export type WebPowerSyncDatabaseOptions = WithWebSyncOptions>; export const DEFAULT_POWERSYNC_FLAGS: Required = { ...DEFAULT_WEB_SQL_FLAGS, @@ -99,6 +99,20 @@ export const resolveWebPowerSyncFlags = (flags?: WebPowerSyncFlags): Required