mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 12:42:58 +08:00
changed capped property in SchemaOptions to match mongoose 4 document… (#18901)
* changed capped property in SchemaOptions to match mongoose 4 documentation http://mongoosejs.com/docs/guide.html#capped * added boolean type as an option to capped
This commit is contained in:
committed by
Mohamed Hegazy
parent
e21abb3dab
commit
c2ca879dca
2
types/mongoose/index.d.ts
vendored
2
types/mongoose/index.d.ts
vendored
@@ -696,7 +696,7 @@ declare module "mongoose" {
|
||||
/** defaults to true */
|
||||
bufferCommands?: boolean;
|
||||
/** defaults to false */
|
||||
capped?: boolean;
|
||||
capped?: boolean | number | { size?: number; max?: number; autoIndexId?: boolean; };
|
||||
/** no default */
|
||||
collection?: string;
|
||||
/** defaults to "__t" */
|
||||
|
||||
Reference in New Issue
Block a user