jaredhanson / passport-http-bearer

HTTP Bearer authentication strategy for Passport and Node.js.
https://www.passportjs.org/packages/passport-http-bearer/?utm_source=github&utm_medium=referral&utm_campaign=passport-http-bearer&utm_content=about
MIT License
951 stars 142 forks source link

is it possible to have a typescript definition file? #41

Closed demobiel closed 9 years ago

demobiel commented 9 years ago

is it possible to have a typescript definition file?

thanks !

jaredhanson commented 9 years ago

No.

demobiel commented 9 years ago

ok :)

G-Rath commented 5 years ago

@jaredhanson any particular reason why not? Are you against TypeScript, or just don't have the time or familiarity to make one yourself?

bryan-vh commented 3 years ago

@jaredhanson any update on this? Would be really beneficial to have for people using NestJs with TS.

jaredhanson commented 3 years ago

I don't use TypeScript, so I have not interest in spending the time required to maintain and support it. I believe it is possible to distribute TypeScript definitions external to a project, and there are such definitions for Passport and its strategies.

If someone who is familiar with TypeScript wants to document how to use these, I'd be happy to include that in the README or documentation for others who also use TypeScript.

davideicardi commented 2 years ago

Just for info, type definition can be found here: https://www.npmjs.com/package/@types/passport-http-bearer