-
Notifications
You must be signed in to change notification settings - Fork 7
fix most of broken types openeo.d.ts #72
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
fix most of broken types openeo.d.ts #72
Conversation
Thanks. It's interesting, because we generate this through typescript and thus the obvious question is, why is typescript generating invalid code? Although there's no plan to migrate this project to Typescript, I'm happy to work on making the workflow to provide typescript bindings as smooth as possible. Right now it's a painful process ( It looks like the three changes are:
Is there anything else that I didn't catch? |
Yes, I know about I do not believe that I see only 2 ways:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
There's no desire to switch to Typescript (JS is as "modern" as TS and the increase in dev speed depends on each developer individually).
How would a separate typescript package with types help compared to having it directly in the @openeo/js-client npm package?
There are no big differences, just one of the ways to add TS support to a JS project |
I faced that in openeo.d.ts were many TypeScript typing errors.
I fixed many errors, and now in VSCode, I can use typing when adding @openeo/js-client library in my project
#70
The best way to add TypeScript support is to refactor the project to TypeScript (replace JSDoc with TypeScript.
@m-mohr
@christophfriedrich