react-simple-oauth2-login
react-simple-oauth2-login copied to clipboard
Using with typescript!
How can i use with typescript?
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
I'm working on my own declarations file that I might PR in at some point.
@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!
@bhubr would you be up for a TypeScript/Function Components port if I make a PR?