Skip to content

Commit 9e3964d

Browse files
authored
fix(orm): findUnique arg typing (#408)
* fix(orm): reimplement typescript type display simplification * update * fix(orm): findUnique arg typing
1 parent ed931da commit 9e3964d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/orm/src/client/crud-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ export type FindManyArgs<Schema extends SchemaDef, Model extends GetModels<Schem
664664
export type FindFirstArgs<Schema extends SchemaDef, Model extends GetModels<Schema>> = FindArgs<Schema, Model, true>;
665665

666666
export type FindUniqueArgs<Schema extends SchemaDef, Model extends GetModels<Schema>> = {
667-
where?: WhereUniqueInput<Schema, Model>;
667+
where: WhereUniqueInput<Schema, Model>;
668668
} & SelectIncludeOmit<Schema, Model, true>;
669669

670670
//#endregion

0 commit comments

Comments
 (0)