Skip to content

Commit 5f6bfdc

Browse files
committed
v0fix: fixed type error when using useClientDb without arguments
1 parent 5dd3e44 commit 5f6bfdc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/runtime/utils/clientDatabaseManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export class ClientDatabaseManager {
9292

9393
init(
9494
name: string,
95-
opts: AllOptions, // do not define this or init will break
95+
opts?: AllOptions, // do not define this or init will break
9696
initOptions: InitOptions = {}
9797
): ClientDatabaseEntry | undefined {
9898
const exists = this.databases.has(name)
@@ -198,7 +198,7 @@ export class ClientDatabaseManager {
198198

199199
async useClientDb(
200200
name: string = this.defaultDatabaseName,
201-
opts: AllOptions, // do not define this or init will break
201+
opts?: AllOptions, // do not define this or init will break
202202
{
203203
bypassEnvCheck = false,
204204
addToWindowInDev = true,

0 commit comments

Comments
 (0)