added capped option interface

This commit is contained in:
Maksim Sharnin
2017-01-14 02:05:11 +07:00
parent ed3b56890d
commit 0584ef8f74
+7 -1
View File
@@ -309,10 +309,16 @@ declare module "mongoose" {
(...hookArgs:any[]): any;
}
interface CappedOptions {
size: number,
max?: number,
autoIndexId?: boolean
}
export interface SchemaOption {
autoIndex?: boolean;
bufferCommands?: boolean;
capped?: boolean|number|Object;
capped?: boolean|number|CappedOptions;
collection?: string;
id?: boolean;
_id?: boolean;