Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libs/knex-schema/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ export type ValidatedSpec =
| ({ type: 'many' } & ValidatedJoinManySpec);

// ---------------------------------------------------------------------------
// InsertType — like InferType but makes optional properties omittable
// InsertType — all properties optional (DB may generate some, e.g. SERIAL id)
// ---------------------------------------------------------------------------
export type InsertType<
T extends ObjectSchemaBuilder<any, any, any, any, any, any, any>
> = InferType<T>;
> = InferType<ReturnType<T['makeAllPropsOptional']>>;
Comment on lines +190 to +194
Loading