-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide typing #334
Comments
@Sytten Yes, not against it, but since I don't use typescript myself I don't have the necessary knowledge to put that in place. I am open to PR that can guarantee that:
|
Verify the typing could be done with https://github.com/SamVerschueren/tsd or https://github.com/microsoft/dtslint |
|
Typings are not compatible to changes with current version starting with 4.0.0. Last compatible version ist @types/simple-oauth2 = 2.5.3 with simple-oauth2 = 3.4.0 |
Having an official Typing support will be great as TypeScript is more and more popular. Since I tired of waiting, I made a simple typing file for this library (based on the original https://gist.github.com/namdien177/064db5d07850ab28714b6e41858a7e0c |
@namdien177 I suggest you make a PR on the @types package. That would really benefit the community. |
Honestly, I want to do that but I don't have any experience with creating PR in the community repo; also, I still need to check and tweak my typing version for a few days to ensure it will work. |
In regards to this, when upgrading to 4.x I get in my firebase project
I suppose it's related. Any tip. ? |
@namdien177 how can one load/refer to your typing file ? |
I believe you can follow these steps or these? For my current project, I just replace the content of |
@jimmykane Please also note that we do rely on some Node 12 only features on v4. Please verify your environment supports that. |
Oooh, thank you @namdien177 ! :D |
@jonathansamines ok thank you very much. This is useful since Firebase has 10. I ll hold back a bit and thanks again |
That's good news @namdien177. Since the issue seem to be solved now, will close this issue. |
Context
What problem are you trying to solve?
The only typing available for this library in
@types/simple-oauth2
is very old and is not corresponding with the latest version of the library. This basically makes the library unusable with Typescript. Would it possible to provide typing?Thanks!
The text was updated successfully, but these errors were encountered: