<p dir="auto">If you know how to fix the issue, make a pull request instead.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/mongoose-paginate-v2</code> package and had problems.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond.
<ul dir="auto">
<li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/linusbrolin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/linusbrolin">@linusbrolin</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/simonxca/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/simonxca">@simonxca</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/woutgg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/woutgg">@woutgg</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/oktapodia/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/oktapodia">@oktapodia</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/chazepps/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/chazepps">@chazepps</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gamsterx/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gamsterx">@gamsterx</a></li>
</ul>
</li>
</ul>
<p dir="auto">If you do not mention the authors the issue will be ignored.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; tsc

node_modules/@types/mongoose-paginate-v2/index.d.ts:70:9 - error TS2411: Property 'nextPage' of type 'number | null | undefined' is not assignable to string index type 'number | boolean | T[] | undefined'.

70         nextPage?: number | null;
           ~~~~~~~~

node_modules/@types/mongoose-paginate-v2/index.d.ts:71:9 - error TS2411: Property 'prevPage' of type 'number | null | undefined' is not assignable to string index type 'number | boolean | T[] | undefined'.

71         prevPage?: number | null;
           ~~~~~~~~
"><pre class="notranslate"><code class="notranslate">&gt; tsc

node_modules/@types/mongoose-paginate-v2/index.d.ts:70:9 - error TS2411: Property 'nextPage' of type 'number | null | undefined' is not assignable to string index type 'number | boolean | T[] | undefined'.

70         nextPage?: number | null;
           ~~~~~~~~

node_modules/@types/mongoose-paginate-v2/index.d.ts:71:9 - error TS2411: Property 'prevPage' of type 'number | null | undefined' is not assignable to string index type 'number | boolean | T[] | undefined'.

71         prevPage?: number | null;
           ~~~~~~~~

</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/50920544/80434872-99950500-88c0-11ea-87bd-2b197eed522f.png"><img src="https://user-images.githubusercontent.com/50920544/80434872-99950500-88c0-11ea-87bd-2b197eed522f.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/linusbrolin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/linusbrolin">@linusbrolin</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/simonxca/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/simonxca">@simonxca</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/woutgg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/woutgg">@woutgg</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/oktapodia/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/oktapodia">@oktapodia</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/chazepps/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/chazepps">@chazepps</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gamsterx/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gamsterx">@gamsterx</a></p>
<p dir="auto">Mongoose-pagination-v2 compilation fails.<br>
In the definitions file you can see there is a problem of assigning a type to some string type. This will make it so that any project that uses those definitions fails to compile.<br>
I'm using typescript 3.8.3</p>