Skip to content

Commit 0cd0fb9

Browse files
author
Andrew Schmadel
committed
fix Model.create() values type constraint
1 parent ab0c6a0 commit 0cd0fb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/models/Model.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ export declare abstract class Model<T> extends Hooks {
303303
/**
304304
* Builds a new model instance and calls save on it.
305305
*/
306-
static create<T extends Model<T>>(this: (new () => T), values?: T, options?: ICreateOptions): Promise<T>;
306+
static create<T extends Model<T>>(this: (new () => T), values?: any, options?: ICreateOptions): Promise<T>;
307307
static create<T extends Model<T>, A>(this: (new () => T), values?: A, options?: ICreateOptions): Promise<T>;
308308
static create<A>(this: (new () => T), values?: A, options?: ICreateOptions): Promise<T>;
309309

0 commit comments

Comments
 (0)