Skip to content

Commit

Permalink
fix: update type generic to allow interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
chaucerbao committed Nov 18, 2024
1 parent 1156215 commit d485f44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ export class Database {
}

/** Safely execute SQL with parameters using a tagged template */
sql<T extends Record<string, unknown> = Record<string, any>>(
sql<T extends Record<string, any> = Record<string, any>>(
strings: TemplateStringsArray,
...parameters: RestBindParameters
): T[] {
Expand Down

0 comments on commit d485f44

Please sign in to comment.