Skip to content

Commit 192df18

Browse files
committed
v0fix: fixed small type error
1 parent 5f1c07a commit 192df18

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/runtime/composables/useClientDb.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export async function useClientDb<
1010
TName extends keyof LocalPgDbTypes | string,
1111
TDb extends TName extends keyof LocalPgDbTypes ? LocalPgDbTypes[TName] : (PgliteDatabase | PgRemoteDatabase)
1212
>(
13-
name: TName | undefined,
13+
name?: TName,
1414
opts?: AllOptions, // do not define this or init will break
1515
initOpts: InitOptions = {}
1616
):

0 commit comments

Comments
 (0)