diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index 867f844e3f..2a845f2d9c 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -914,6 +914,13 @@ declare module "mongoose" { */ requiredPaths(invalidate?: boolean): string[]; + /** + * Lists all paths and their type in the current schema. + */ + paths: { + [key: string]: SchemaType; + } + /** * Sets/gets a schema option. * @param key option name