DefinitelyTyped / DefinitelyTyped/DefinitelyTyped

[@types/passport-local-mongoose] Generic type 'Query<ResultType, DocType, THelpers>' requires between 2 and 3 type arguments

Open
#52,318 3 comments 1 reaction 0 assignees View on GitHub

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.

image

  • Authors: @linusbrolin

Could you help with that?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.