Skip to content

Regenerate types automatically#86

Draft
martinRenou wants to merge 6 commits intoOpen-EO:masterfrom
martinRenou:regenerate_types
Draft

Regenerate types automatically#86
martinRenou wants to merge 6 commits intoOpen-EO:masterfrom
martinRenou:regenerate_types

Conversation

@martinRenou
Copy link
Copy Markdown
Contributor

@martinRenou martinRenou commented Apr 16, 2026

Should fix #70

Still in draft. I need to test this properly.

For the reviewer, it's easier to review with hiding whitespaces changes https://github.com/Open-EO/openeo-js-client/pull/86/changes?w=1

Comment thread src/browser.js Outdated
@martinRenou martinRenou changed the title Regenerate types Regenerate types automatically Apr 16, 2026
@martinRenou
Copy link
Copy Markdown
Contributor Author

I was able to make eslint and TypeScript happy, the generated types are now correct. But now jsdocs complains...

I'll pause this now. If someone who knows jsdocs more than I do can help that would be great!

Comment thread src/builder/builder.js
*
* @returns {Array.<object.<string,*>>}
*
* @returns {Array.<Record.<string,*>>}
Copy link
Copy Markdown
Member

@m-mohr m-mohr Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one note right at the beginning:

This is a JavaScript codebase. Using "Record" in the JS documentation would not be correct as "Record" is not specificed/available in JavaScript.

Whatever creates the Typescript declaration has to convert this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Syntax errors in typescript file?

2 participants