bhubr / react-simple-oauth2-login

Simple React component for OAuth2 login - Supports Authorization Code and Implicit Grant flows.
MIT License
49 stars 31 forks source link

Using with typescript! #53

Open duduccosta opened 2 years ago

duduccosta commented 2 years ago

How can i use with typescript?

bhubr commented 2 years ago

Good question. I've been unable to keep working on the project lately, but I'll try and come up with a suggestion for proper use with TS. A good starting point would be tutorials about declaring external libs, e.g. this one: https://www.newline.co/@bespoyasov/how-to-declare-missing-types-for-external-libraries--ff45540d

DiefBell commented 2 years ago

I'm working on my own declarations file that I might PR in at some point.

bhubr commented 2 years ago

@DiefBell Great! I've considered it for a while, and since I've been using TS more and more this year, I second that it'd be really nice to add this!

DiefBell commented 2 years ago

@bhubr would you be up for a TypeScript/Function Components port if I make a PR?