Skip to content

Commit

Permalink
refactor: 🏷️ remove redundant generic types from AccessTable instances
Browse files Browse the repository at this point in the history
  • Loading branch information
CRBroughton committed Apr 14, 2024
1 parent 05454ce commit 920bba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sqljs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
export default async function Sibyl<T extends Record<string, any>>(db: Database) {
type TableKeys = keyof T
type AccessTable = T[TableKeys]
function createTable<T extends TableKeys>(table: T, tableRow: MappedTable<AccessTable<T>>) {
function createTable<T extends TableKeys>(table: T, tableRow: MappedTable<AccessTable>) {
const statement = convertCreateTableStatement(tableRow)
db.run(`CREATE TABLE ${String(table)} (${statement});`)
}
Expand Down

0 comments on commit 920bba9

Please sign in to comment.