Skip to content
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 types and remove unnecessary async #277

Merged
merged 1 commit into from
Jan 27, 2022

Conversation

ahocevar
Copy link
Contributor

Now that types are published, it is imporant that async functions have the correct @returns type, i.e. a Promise. Also, functions that are not async should not have the async keyword.

This pull request fixes that.

It would be good if a patch release could be published when this is merged. This is the last showstopper for updating geotiff to v2 in OpenLayers. See openlayers/openlayers#13292.

@constantinius constantinius merged commit f93870c into geotiffjs:master Jan 27, 2022
@constantinius
Copy link
Member

Done.

@ahocevar
Copy link
Contributor Author

Thanks, @constantinius

@ahocevar
Copy link
Contributor Author

@constantinius Did you mean to publish this as v2.0.2? Looks like npmjs.com does not have that package (yet).

@constantinius
Copy link
Member

@ahocevar This should actually be included in 2.0.2 🤔
Yes, the package is not yet there. Will investigate

@constantinius
Copy link
Member

@ahocevar The github action has failed. Have restarted it and it passed now. Release should be up now.

@ahocevar ahocevar deleted the fix-types branch January 28, 2022 08:52
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.

2 participants