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

Bring back the global type declaration for the Symbol.observable to fix consuming projects that do not use skipLibCheck #2953

Merged
merged 1 commit into from
Jan 20, 2022

Conversation

Andarist
Copy link
Member

@Andarist Andarist commented Jan 20, 2022

fixes #2950

I rly dislike that we are affecting a global thing here - stuff like that causes me harm in the past on several occasions. The risk here is somewhat low but I still dislike the sole notion of doing this 😉

This Symbol is just a „pseudo” standard - it was part of the ES Observable proposal but that never moved far in the standards process. I sympathize with Evan You here: vuejs/core#968 (comment)

A funny thing is that… Rx Observables don’t include this property at the type level and they dont pass their own InteropObservable type-level „check” (although I’ve deduced this from their code and im not sure if I’ve verified this in an actual project, I was playing around with that yesterday and would have to recheck that to be absolutely sure about this)

… fix consuming projects that do not use `skipLibCheck`
@changeset-bot
Copy link

changeset-bot bot commented Jan 20, 2022

🦋 Changeset detected

Latest commit: 809e353

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
xstate Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ghost
Copy link

ghost commented Jan 20, 2022

CodeSee Review Map:

Review these changes using an interactive CodeSee Map

Review in an interactive map

View more CodeSee Maps

Legend

CodeSee Map Legend

@Andarist Andarist merged commit 90fa970 into main Jan 20, 2022
@Andarist Andarist deleted the andarist/fix-2950 branch January 20, 2022 23:12
@github-actions github-actions bot mentioned this pull request Jan 20, 2022
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.

Property 'observable' does not exist on type 'SymbolConstructor'. (Updating from 4.27.0 to 4.28.0)
2 participants