We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da3ef59 commit 5031a1bCopy full SHA for 5031a1b
src/templates/kysely-types.template.ts
@@ -1,8 +1,11 @@
1
export default `import { ColumnType, Kysely } from "kysely"
2
import * as schema from "zapatos/schema"
3
-import { SQLFragment } from "zapatos/db"
+import { Parameter, SQLFragment } from "zapatos/db"
4
5
-type ZapatosInsertableTypeToPrimitive<T> = Exclude<T, symbol | SQLFragment>
+type ZapatosInsertableTypeToPrimitive<T> = Exclude<
6
+ T,
7
+ symbol | SQLFragment<any, any> | Parameter
8
+>
9
10
export type ZapatosTableNameToKyselySchema<T extends schema.Table> = {
11
[K in keyof schema.SelectableForTable<T>]: ColumnType<
0 commit comments