Skip to content

Commit

Permalink
fix(types): correct SchemaTypeOptions.get function signature
Browse files Browse the repository at this point in the history
Fix #11561
  • Loading branch information
vkarpov15 committed Apr 27, 2022
1 parent 07f6312 commit 2119e5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,7 @@ declare module 'mongoose' {
transform?: (this: any, val: T) => any;

/** defines a custom getter for this property using [`Object.defineProperty()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty). */
get?: (value: T, doc?: this) => any;
get?: (value: any, doc?: this) => T;

/** defines a custom setter for this property using [`Object.defineProperty()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty). */
set?: (value: any, priorVal?: T, doc?: this) => any;
Expand Down

0 comments on commit 2119e5a

Please sign in to comment.