Skip to content

Commit c9f2969

Browse files
committed
fix: commit() actually returns original model
1 parent cb17155 commit c9f2969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/service-module/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ export interface ModelInstanceClone<D extends {} = {}>
305305
/**
306306
* Commit changes from clone to original
307307
*/
308-
commit(): this
308+
commit(): Model<D>
309309

310310
/**
311311
* Discards changes made on this clone and syncs with the original

0 commit comments

Comments
 (0)