react-simple-oauth2-login icon indicating copy to clipboard operation
react-simple-oauth2-login copied to clipboard

Using with typescript!

Open duduccosta opened this issue 3 years ago • 4 comments

How can i use with typescript?

duduccosta avatar Jan 27 '22 11:01 duduccosta

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

bhubr avatar Jan 27 '22 13:01 bhubr

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

DiefBell avatar Jun 01 '22 10:06 DiefBell

@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 avatar Jun 01 '22 10:06 bhubr

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

DiefBell avatar Jun 01 '22 13:06 DiefBell