Skip to content

Commit 60541e7

Browse files
committed
types: add function args to setters property
1 parent c7f7273 commit 60541e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/schematypes.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ declare module 'mongoose' {
217217
static get(getter: (value: any) => any): void;
218218

219219
/** Array containing default setters for all instances of this SchemaType */
220-
static setters: Function[];
220+
static setters: ((val?: unknown, priorVal?: unknown, doc?: Document<unknown>, options?: Record<string, any> | null) => unknown)[];
221221

222222
/** The class that Mongoose uses internally to instantiate this SchemaType's `options` property. */
223223
OptionsConstructor: SchemaTypeOptions<T>;

0 commit comments

Comments
 (0)