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 return type of ImageObjectPromiseLoader #16480

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

MoonE
Copy link
Contributor

@MoonE MoonE commented Dec 16, 2024

Remove ImageLike and ImageObject from the return type. It always returns a promise.

There's still the Loader typedef which includes these in the return type.

* @typedef {function(import("./extent.js").Extent, number, number, (function(HTMLImageElement, string): void)=): import("./DataTile.js").ImageLike|ImageObject|Promise<import("./DataTile.js").ImageLike|ImageObject>} Loader

Remove ImageLike and ImageObject from the return type. It always returns
a promise.
Copy link

📦 Preview the website for this branch here: https://deploy-preview-16480--ol-site.netlify.app/.

@MoonE MoonE merged commit 3297a68 into openlayers:main Dec 17, 2024
8 checks passed
@MoonE MoonE deleted the fix-imageobjectpromiseloader-type branch December 17, 2024 00:23
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