passport-local-mongoose icon indicating copy to clipboard operation
passport-local-mongoose copied to clipboard

Generic type 'Query<ResultType, DocType, THelpers>' requires between 2 and 3 type arguments.

Open sparkidea25 opened this issue 3 years ago • 1 comments

Hi guys, please i have this issue on the index.d.ts file to my passport-local-mongoose package, anisd iin my controller too, i cannot use the User.register method, would be glad if you could help me look into it and give suggestions on what i should do, thank you. Screen Shot 2021-05-11 at 1 02 56 AM

sparkidea25 avatar May 11 '21 00:05 sparkidea25

Hello,

Unfortunately types for passport-local-mongoose are very old :( I found temporary solution to compile project without that problem: Edit file tsconfig.json and add option "skipLibCheck": true in section "compilerOptions".

Maybe when new version of types will be released, then you can remove that option from ts configuration.

Regards Radek

jestemradek avatar May 30 '21 17:05 jestemradek