Skip to content

Commit

Permalink
types: add function args to setters property
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Sep 11, 2024
1 parent c7f7273 commit 60541e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/schematypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ declare module 'mongoose' {
static get(getter: (value: any) => any): void;

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

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

0 comments on commit 60541e7

Please sign in to comment.