Push
A Push event represents the "pushing" of a value to a Sink, and has a value field equal to the value the event is carrying.
See Also
Push - Function
Returns
The created Push event.
Example Usage
const event = Push([1, 2, 3]);
console.log(event.type); // `${PushType}`.
console.log(event.value); // [1, 2, 3].
Signature - source.ts#L150
function Push<T>(): Push<undefined>
function Push<T>(value: T): Push<T>
Parameters
Parameter | Type | Description |
---|---|---|
value |
| The value to put in the returned event. |
Push - Interface
Signature - source.ts#L53
interface Push<T> {
readonly type: PushType
readonly value: T
}
PushType
PushType - Type
Signature - source.ts#L24
type PushType = 0
PushType - Variable
Signature - source.ts#L28
var PushType: PushType