From c2ca879dca38ea267a79491c3d0fa07191a29115 Mon Sep 17 00:00:00 2001 From: Roman Jurkov Date: Mon, 14 Aug 2017 14:17:04 -0400 Subject: [PATCH] =?UTF-8?q?changed=20capped=20property=20in=20SchemaOption?= =?UTF-8?q?s=20to=20match=20mongoose=204=20document=E2=80=A6=20(#18901)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- types/mongoose/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index 3c48f309f6..9045e5ec3b 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -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" */