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

This commit is contained in:
mbiegert
2020-02-26 01:31:54 +01:00
committed by GitHub
parent 01fac1a04a
commit 1971373cdd

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