diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index 077071abf3..c18daef6d1 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -1032,6 +1032,11 @@ declare module "mongoose" { * assigned is Date. */ timestamps?: boolean | SchemaTimestampsConfig; + /** + * Determines whether a type set to a POJO becomes + * a Mixed path or a Subdocument (defaults to true). + */ + typePojoToMixed?:boolean; } interface SchemaTimestampsConfig {