[@types/mongoose] Add the paths property to Schema type (#42307)

This commit is contained in:
mbiegert
2020-02-25 16:31:54 -08:00
committed by GitHub
parent 01fac1a04a
commit 1971373cdd
+7
View File
@@ -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