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
Source Location: packages/core/src/source.ts#L150
Returns
The created Push event.
Example Usage
1 | const event = Push([1, 2, 3]); |
2 | console.log(event.type); // `${PushType}`. |
3 | console.log(event.value); // [1, 2, 3]. |
Signature
1 | function Push<T>(): Push<undefined> |
Signature
1 | function Push<T>(value: T): Push<T> |
Parameters
Parameter | Type | Description |
---|
value |
| The value to put in the returned event. |
Source Location: packages/core/src/source.ts#L53
Signature
1 | interface Push<T> { |
2 | readonly type: PushType |
3 | readonly value: T |
4 | } |
Source Location: packages/core/src/source.ts#L24
Signature
Source Location: packages/core/src/source.ts#L28
Signature