mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
strictly typed Schema set arguments
This commit is contained in:
Vendored
+2
-2
@@ -769,8 +769,8 @@ declare module "mongoose" {
|
||||
* @param key option name
|
||||
* @param value if not passed, the current option value is returned
|
||||
*/
|
||||
set(key: string): any;
|
||||
set(key: string, value: any): this;
|
||||
set<T extends keyof SchemaOptions>(key: T): SchemaOptions[T];
|
||||
set<T extends keyof SchemaOptions>(key: T, value: SchemaOptions[T]): this;
|
||||
|
||||
/**
|
||||
* Adds static "class" methods to Models compiled from this schema.
|
||||
|
||||
Reference in New Issue
Block a user