Open guyellis opened 6 years ago
I've had a quick look over this and it's probably a good idea. I'm not particularly familiar with TypeScript so I won't be looking at it straight away, but we can mark this one as something to do in the future.
About this, I think the faster way, is to rewrite all in typescript, and set the option to auto-generate the typings .
Typescript, is mostly javascript compatible, so, in lot of cases, renaming a file from .js
to .ts
can be enough (for the first step only) ( with typescript configuration )
Else, I can be interessed by this project, and I can help.
Question: @rwky - are you thinking of doing any Typescript typings for the
passport-next
modules? The existing typings forpassport
should be fine forpassport-next
for now. If the signatures and/or types change and/or evolve over time they'll become inaccurate.The
3.0.0
version of passport-next/passport-facebook makesgraphApiVersion
mandatory. This is an example of how the typings forpassport-next
will start to drift from the current typings.Passport typing example: https://www.npmjs.com/package/@types/passport