Skip to content

Commit 4949344

Browse files
committed
fix: result type of delete API
1 parent ad704f4 commit 4949344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime/src/client/contract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ export type AllModelOperations<Schema extends SchemaDef, Model extends GetModels
664664
*/
665665
delete<T extends DeleteArgs<Schema, Model>>(
666666
args: SelectSubset<T, DeleteArgs<Schema, Model>>,
667-
): ZenStackPromise<Schema, Simplify<ModelResult<Schema, Model>>>;
667+
): ZenStackPromise<Schema, Simplify<ModelResult<Schema, Model, T>>>;
668668

669669
/**
670670
* Deletes multiple entities.

0 commit comments

Comments
 (0)