-
Notifications
You must be signed in to change notification settings - Fork 61
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
TypeScript Definitions #52
Comments
I agree with this; for us (~100 user shop currently evaluating Okta) this is not just a nice-to-have, this is a requirement. |
This is much needed. Is anybody working on this, or having a plan for this? |
I agree. It is unacceptable |
+1 to having TypeScript Definitions 👍 |
+1 :D |
Your comments are not ignored, this is just competing with all the various new features and quality of life improvements. For now continue to vote for this issue if you'd like to see us focus on it and we'll improve our communication in return. |
Between this and okta/okta-auth-js#64, I think it's pretty clear there is a wide need for TypeScript typings. This lack makes Okta a tough sell to the engineering managers! 😉 |
@smithki Understood, thanks for your feedback! |
@Shahaed I'm looking forward to TypeScript definitions as much as anyone, but there is absolutely no call for being a jerk about it. |
Anyone care to share what they've made so far? Maybe we can crowdsource something. I found a few basic return types here https://developer.okta.com/blog/2019/09/19/nodejs-typescript |
Hi everyone, thank you for your thoughts. We've discussed this and have decided that Typescript should get some first-party support from us, so we will start working it into our roadmap. Continue to watch this issue for updates. Thanks! |
@robertjd we're past two years open on this issue and I see nothing public addressing this since your last comment. TypeScript is no longer niche. what's the word? |
Adding Typescript definitions to our work is actively on people's sprints, but does bounce around as priority issues appear. I don't have a more specific answer than that: The work isn't theoretical, it is actively happening, and you should start seeing it appear on our various repos. |
Just adding my $0.02. This is actively scaring away potential customers. I for one wouldn't even consider using a library that does not have definitions available when it is going to play such an important role in my applications. I don't believe I am the only one with this opinion. |
We are potential customers and I want to gently agree here. I spent a great deal of time this weekend trying to figure out why something was failing that was listed in the docs only to figure out the docs were wrong. This would have been pretty clear cut with types giving me a hint that things were out of sync between implementation and docs. |
@Ziao and @myspivey - We appreciate the feedback. Typescript definitions are being actively pursued, we are just taking some time to (1) do the projects in dependency order and (2) make sure we're doing it right and maintainably, as we feel poor or out-of-date definitions are worse than none. Definitely keep sharing your comments - we are listening and we understand the delays are frustrating. |
Just a periodic update: We are rolling out TypeScript definitions in one of our more heavily-depended libraries. If that goes smoothly, other libraries will be updated with TypeScript definitions, including this one. You can view that other TypeScript deployment here: okta/okta-auth-js#413 |
Correct me if I'm wrong, but this means we have TypeScript support in all our JS SDKs! 😃😁😆 |
Is there any example I can check ? |
@tsibelman I have pushed a naive usage example here. It looks like there is an issue with generated client's |
@oleksandrpravosudko-okta Thank you for this |
@tsibelman Please check out 4.5.1 release. The README has been updated with a suggested usage example. |
It looks great I changed my code and all is working fine, but I think if you can move all models declaration to a root of the library it could make type a bit more discoverable compared to '@okta/okta-sdk-nodejs/src/types/models/LogEvent' |
Thanks for the feedback @tsibelman. |
@oleksandrpravosudko-okta the established pattern for a move of exports now would be to move the exports, duplicate them to the old spot, and deprecate the old spot. That's an extremely common pattern to follow when initial choices that users may now depend on need to be refined. I'd really encourage you fine folks there at Okta to embrace common open source patterns in Okta's open source libs. |
@oleksandrpravosudko-okta it's been over a month with no reply to the last comment. since this issue has been open since 2018, the work I described is rather trivial, and this package is maintained by a corporate entity, it would be cool if you could at least give us (who are mostly working for orgs that pay for Okta) an idea of timeline. |
Apologies for the lack of updates here @shellscape. |
Wonderful, thank you very much. |
@shellscape please check out 4.6.0 release. |
It would be nice if there were TypeScript definitions for this SDK. Thanks!
The text was updated successfully, but these errors were encountered: