mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
[@types/mongoose] Add the paths property to Schema type (#42307)
This commit is contained in:
7
types/mongoose/index.d.ts
vendored
7
types/mongoose/index.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user