Browse Source

refactor: extends WithoutId type

e22m4u 2 months ago
parent
commit
8e775c7801
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/repository/repository.d.ts

+ 1 - 1
src/repository/repository.d.ts

@@ -161,7 +161,7 @@ export declare class Repository<
 /**
  * Removes id field.
  */
-type WithoutId<IdName extends string, Data extends ModelData> = Flatten<
+type WithoutId<IdName extends string, Data extends object> = Flatten<
   Omit<Data, IdName>
 >;