passport-local-mongoose
passport-local-mongoose copied to clipboard
Generic type 'Query<ResultType, DocType, THelpers>' requires between 2 and 3 type arguments.
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.
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