Skip to content

Commit

Permalink
fix: update type generic to allow interfaces (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaucerbao authored Dec 18, 2024
1 parent 1156215 commit c078d61
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 c078d61

Please sign in to comment.