We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd87992 commit 5f1c07aCopy full SHA for 5f1c07a
1 file changed
README.md
@@ -200,8 +200,10 @@ import * as schema from "~~/db/client-schema.ts"
200
declare module "#witchcraft/nuxt-postgres/types.js" {
201
export interface Register {
202
ExtendedLocalPgDbTypes: {
203
- "client": typeof schema
+ "client": PgliteDatabase<typeof schema> | PgRemoteDatabase<typeof schema>
204
}
205
+ // or to type many dbs the same (e.g. one per user)
206
+ // ExtendedLocalPgDbTypes: Record<string, PgliteDatabase<typeof schema> | PgRemoteDatabase<typeof schema>>
207
208
209
export {}
0 commit comments