Skip to content

Commit

Permalink
fix(useSurrealAuth): internal function type
Browse files Browse the repository at this point in the history
  • Loading branch information
sandros94 committed Jul 14, 2024
1 parent d727799 commit 213f79a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/composables/surreal-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function useSurrealAuth(database?: Overrides['database']) {

const authDatabase = _database as keyof PublicRuntimeConfig['surrealdb']['databases'] | false

function _getDatabasePreset(database: Overrides['database']) {
function _getDatabasePreset(database: Overrides['database']): DatabasePreset {
if (typeof database !== 'string' && typeof database !== 'number' && typeof database !== 'symbol' && database !== undefined) {
return defu<DatabasePreset, DatabasePreset[]>(database, databases[authDatabase !== false ? authDatabase : 'default'])
}
Expand Down

0 comments on commit 213f79a

Please sign in to comment.