1 | import { Event } from "./event";
|
2 | import { EventStream } from "./observable";
|
3 | import { Reply } from "./reply";
|
4 | export declare type Sink<V> = (value: V) => Reply;
|
5 | export declare type EventSink<V> = (event: Event<V>) => Reply;
|
6 | export declare type VoidSink = () => Reply;
|
7 |
|
8 |
|
9 | export declare type Unsub = () => void;
|
10 |
|
11 | export declare const nullSink: Sink<any>;
|
12 |
|
13 | export declare const nullVoidSink: VoidSink;
|
14 | export declare type Subscribe<T> = (arg: EventSink<T>) => Unsub;
|
15 |
|
16 | export declare type EventStreamDelay<V> = (stream: EventStream<V>) => EventStream<V>;
|
17 | export declare type Function0<R> = () => R;
|
18 | export declare type Function1<T1, R> = (t1: T1) => R;
|
19 | export declare type Function2<T1, T2, R> = (t1: T1, t2: T2) => R;
|
20 | export declare type Function3<T1, T2, T3, R> = (t1: T1, t2: T2, t3: T3) => R;
|
21 | export declare type Function4<T1, T2, T3, T4, R> = (t1: T1, t2: T2, t3: T3, t4: T4) => R;
|
22 | export declare type Function5<T1, T2, T3, T4, T5, R> = (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => R;
|
23 | export declare type Function6<T1, T2, T3, T4, T5, T6, R> = (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6) => R;
|