Skip to content

Commit

Permalink
Bring back the global type declaration for the Symbol.observable to…
Browse files Browse the repository at this point in the history
… fix consuming projects that do not use `skipLibCheck` (#2953)
  • Loading branch information
Andarist committed Jan 20, 2022
1 parent 7a82e42 commit 90fa970
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/orange-pans-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'xstate': patch
---

Bring back the global type declaration for the `Symbol.observable` to fix consuming projects that do not use `skipLibCheck`.
6 changes: 6 additions & 0 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,9 @@ export {
};

export * from './types';

declare global {
interface SymbolConstructor {
readonly observable: symbol;
}
}

0 comments on commit 90fa970

Please sign in to comment.