Skip to content

Commit

Permalink
fix(types::BasePropOptions): replace "set" & "get" with upstream types
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Jun 1, 2022
1 parent f290fad commit 51296f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export interface BasePropOptions {
* }
* ```
*/
set?(val: any): any;
set?: mongoose.SchemaTypeOptions<any>['set'];
/**
* Set a Getter (Non-Virtual) to Post-process your value
* (when using get/set both are required)
Expand All @@ -143,7 +143,7 @@ export interface BasePropOptions {
* }
* ```
*/
get?(val: any): any;
get?: mongoose.SchemaTypeOptions<any>['get'];
/**
* This may be needed if get/set is used
* (this sets the type how it is saved to the DB)
Expand Down

0 comments on commit 51296f4

Please sign in to comment.