Interface Stream<T, K, I, State>
Type parameters
T: object
K
I: string
State
Methods
off
off( type: "live" , listener: ( state: State ) => void ) : void
off( type: "change" , listener: ( state: State , events: readonly Event < T , K , I > [] ) => void ) : void
off( type: "close" , listener: ( closeEvent: StreamCloseEvent ) => void ) : void
Parameters
type: "live"
listener: ( state: State ) => void
Returns void
Parameters
type: "change"
listener: ( state: State , events: readonly Event < T , K , I > [] ) => void
( state: State , events: readonly Event < T , K , I > [] ) : void
Parameters
state: State
events: readonly Event < T , K , I > []
Returns void
Returns void
Parameters
Returns void
on
on( type: "live" , listener: ( state: State ) => void ) : void
on( type: "change" , listener: ( state: State , events: readonly Event < T , K , I > [] ) => void ) : void
on( type: "close" , listener: ( closeEvent: StreamCloseEvent ) => void ) : void
Parameters
type: "live"
listener: ( state: State ) => void
Returns void
Parameters
type: "change"
listener: ( state: State , events: readonly Event < T , K , I > [] ) => void
( state: State , events: readonly Event < T , K , I > [] ) : void
Parameters
state: State
events: readonly Event < T , K , I > []
Returns void
Returns void
Parameters
Returns void
Legend
Variable
Function with type parameter
Type alias
Type alias with type parameter
Interface with type parameter
Method
Interface for streams returned by the streaming methods of the
Ledger
class. Each'change'
event contains accumulated state of typeState
as well as the ledger events that triggered the current state change.