DefinitelyTyped / DefinitelyTyped/DefinitelyTyped
[@types/passport-local-mongoose] Generic type 'Query<ResultType, DocType, THelpers>' requires between 2 and 3 type arguments
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 51.4k
- Forks
- 30.4k
- Avg merge
- 3d 21h
- Merged PRs (30d)
- 108
Description
Hello there,
with "mongoose" version "5.12.3"
while installing types for "passport-local-mongoose" - version "4.0.13", I'm getting that error:
../../node_modules/@types/passport-local-mongoose/index.d.ts:43:70 - error TS2707: Generic type 'Query<ResultType, DocType, THelpers>' requires between 2 and 3 type arguments.

- Authors: @linusbrolin
Could you help with that?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at index.d.ts line 43 and reproduce the type-checking error with mongoose 5.12.3 and passport-local-mongoose 4.0.13. Compare the Query type usage with the installed mongoose declarations; done means the package no longer produces TS2707 for that dependency combination.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100