-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 errors related to when not conforming to the Promise standard #9297
Comments
The existing typings for Simply adding a devDependency on For Typescript purposes only, you could reference these types with The practical upshot is that you have a few choices:
|
Hi @hpinkos , I came across this while searching for other KML issues, and realized that maybe it's OBE now that you're switching to native Promises everywhere, in which case you'd appreciate a poke so this can be closed out. (If I'm wrong, ignore me.) |
Yep, makes sense to me. Thanks for the heads up! |
Our documentation for functions like
KmlDataSource.load
says it returns aPromise
https://cesium.com/docs/cesiumjs-ref-doc/KmlDataSource.html?classFilter=kmldata#.load
However,
when
promises don't conform to the browser Promise standard, so usingotherwise
andfinally
on these promises causes Typescript to think there's an error when there isn't one.Do we need to create a
typedef
forwhen
promises until we can replace then with native promises? (cc #8525)The text was updated successfully, but these errors were encountered: