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:
Roman Jurkov
2017-08-14 14:17:04 -04:00
committed by Mohamed Hegazy
parent e21abb3dab
commit c2ca879dca

View File

@@ -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" */