You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched existing issues to ensure the issue has not already been raised
Issue
"mongoose": "^7.1.1"
Currently, these arguments' types are all any, see:
mongoose/types/index.d.ts:
exportinterfaceToObjectOptions{/** if set, mongoose will call this function to allow you to transform the returned object */transform?: boolean|((doc: any,ret: any,options: any)=>any);}
I use HydratedDocument<Something> to specify the type for the doc argument, but I am not sure it's correct.
Prerequisites
Issue
"mongoose": "^7.1.1"
Currently, these arguments' types are all
any
, see:mongoose/types/index.d.ts
:I use
HydratedDocument<Something>
to specify the type for thedoc
argument, but I am not sure it's correct.Any suggestion?
The text was updated successfully, but these errors were encountered: