saintedlama / passport-local-mongoose

Passport-Local Mongoose is a Mongoose plugin that simplifies building username and password login with Passport
MIT License
1.18k stars 294 forks source link

add basic type definitions #354

Closed vkarpov15 closed 2 years ago

vkarpov15 commented 2 years ago

Fix #335

We had an issue reported in Mongoose related to this module, turns out that the DefinitelyTyped @types/passport-local-mongoose is stuck on Mongoose 5 and upgrading doesn't seem to be happening. So I ported the @types/passport-local-mongoose types with a couple of changes for Mongoose 6, and added tests using tsd.

coveralls commented 2 years ago

Coverage Status

Coverage remained the same at 97.727% when pulling 211c2b2daa796d34d488c34fc63ddef28345fc3e on vkarpov15:vkarpov15/typedefs into 12d73a5ccf5e5043eba21896ead6adfefaef8ae6 on saintedlama:main.

saintedlama commented 2 years ago

thanks👍