1 | import { Noop } from '../types';
|
2 | export type Observer<T> = {
|
3 | next: (value: T) => void;
|
4 | };
|
5 | export type Subscription = {
|
6 | unsubscribe: Noop;
|
7 | };
|
8 | export type Subject<T> = {
|
9 | readonly observers: Observer<T>[];
|
10 | subscribe: (value: Observer<T>) => Subscription;
|
11 | unsubscribe: Noop;
|
12 | } & Observer<T>;
|
13 | declare const _default: <T>() => Subject<T>;
|
14 | export default _default;
|
15 | //# sourceMappingURL=createSubject.d.ts.map |
\ | No newline at end of file |