Skip to content

Commit

Permalink
fix: database preset types
Browse files Browse the repository at this point in the history
  • Loading branch information
sandros94 committed Sep 16, 2024
1 parent 3c36cc1 commit 2677570
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ export interface ModuleOptions {
}
databases: {
default?: DatabasePreset
[key: string]: Partial<DatabasePreset> | undefined
[key: string]: DatabasePreset | undefined
}
server: {
databases?: {
[key: string]: Partial<DatabasePreset> | undefined
[key: string]: DatabasePreset | undefined
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/runtime/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ export type AuthToken = string | {
}

export interface Overrides {
database?: DatabasePresetKeys | Partial<DatabasePreset>
database?: DatabasePresetKeys | DatabasePreset
token?: AuthToken | boolean
}

export interface ServerOverrides {
database?: DatabasePresetServerKeys | Partial<DatabasePreset>
database?: DatabasePresetServerKeys | DatabasePreset
token?: AuthToken | boolean
}

export interface DatabasePreset {
host: string
host?: string
ws?: string
NS?: string
DB?: string
Expand Down

0 comments on commit 2677570

Please sign in to comment.