From 6202437f4fd4cc9bfa361764396087f5823877d2 Mon Sep 17 00:00:00 2001 From: Grimmer Date: Wed, 1 Jan 2020 07:22:45 +0800 Subject: [PATCH] Add typePojoToMixed to mongoose SchemaOptions (#41290) --- types/mongoose/index.d.ts | 5 +++++ 1 file changed, 5 insertions(+) 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 {