From a023bf6430f16beb24fa31adbdfa0e93bf8793fe Mon Sep 17 00:00:00 2001 From: Kerollos Magdy Date: Tue, 5 May 2020 01:46:32 +0200 Subject: [PATCH] Add custom PaginateOptions for all queries (#44129) As of mongoose-paginate-v2 documentation https://github.com/aravindnc/mongoose-paginate-v2#set-custom-default-options-for-all-queries --- types/mongoose-paginate-v2/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/mongoose-paginate-v2/index.d.ts b/types/mongoose-paginate-v2/index.d.ts index ed5aa0afa3..1378ac3e13 100644 --- a/types/mongoose-paginate-v2/index.d.ts +++ b/types/mongoose-paginate-v2/index.d.ts @@ -90,3 +90,6 @@ declare module 'mongoose' { import mongoose = require('mongoose'); declare function _(schema: mongoose.Schema): void; export = _; +declare namespace _ { + const paginate: { options: mongoose.PaginateOptions }; +}