Declaration files Typescript
arcanewater opened this issue · 6 comments
Has anyone worked with Typescript 2? And are there maybe any plans to write declaration files for koa-passport?
I haven't worked with Typescript. Does passport
(since koa-passport is more or less just a wrapper) provide such files?
Yea passport have them: https://www.npmjs.com/package/@types/passport
https://github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/passport
I am experimenting a bit but no success yet.
It would be necessary to also have such files for all the passport strategies used, wouldn't it?
Most of types are already here for example local: https://www.npmjs.com/package/@types/passport-local. So i think only need there should be function which are not passport func.
Its done, one guy already pushed it to DefinitlyTyped
Thanks for the update! Just for future reference, link is: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/koa-passport/koa-passport.d.ts