Sub overview
Defines Sub
s as streams of messages.
Added in v0.5.0
Table of contents
Functor
map
Maps Msg
of a Sub
into another Msg
.
Signature
export declare function map<A, Msg>(f: (a: A) => Msg): (sub: Sub<A>) => Sub<Msg>
Added in v0.5.0
constructors
none
A none
subscription is an empty stream.
Signature
export declare const none: Sub<never>
Added in v0.5.0
model
Sub (interface)
Signature
export interface Sub<Msg> extends Observable<Msg> {}
Added in v0.5.0
utils
batch
Merges subscriptions streams into one stream.
Signature
export declare function batch<Msg>(arr: Array<Sub<Msg>>): Sub<Msg>
Added in v0.5.0