Skip to content

Commit 2f1d36a

Browse files
Re-expose InteropObservable and InteropSubscribable (#4712)
* Expose InteropObservable and InteropSubscribable * Changeset * make `MachineImplementationsSimplified` hidden * Update packages/core/src/types.ts Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com> * Update packages/core/src/types.ts Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com> * Update .changeset/slow-swans-punch.md Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com> * Update packages/core/src/types.ts --------- Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
1 parent 25038c1 commit 2f1d36a

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.changeset/slow-swans-punch.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'xstate': patch
3+
---
4+
5+
Ensure that `InteropObservable` and `InteropSubscribable` are present in the type definition file.

packages/core/src/types.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ export type DelayConfig<
10461046

10471047
// TODO: possibly refactor this somehow, use even a simpler type, and maybe even make `machine.options` private or something
10481048
/**
1049-
* @internal
1049+
* @hidden
10501050
*/
10511051
export interface MachineImplementationsSimplified<
10521052
TContext extends MachineContext,
@@ -1879,16 +1879,10 @@ export interface Subscription {
18791879
unsubscribe(): void;
18801880
}
18811881

1882-
/**
1883-
* @internal
1884-
*/
18851882
export interface InteropObservable<T> {
18861883
[Symbol.observable]: () => InteropSubscribable<T>;
18871884
}
18881885

1889-
/**
1890-
* @internal
1891-
*/
18921886
export interface InteropSubscribable<T> {
18931887
subscribe(observer: Observer<T>): Subscription;
18941888
}

0 commit comments

Comments
 (0)