Skip to main

Push

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

Source Location: packages/core/src/source.ts#L150

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

function Push<T>(): Push<undefined>

Signature

function Push<T>(value: T): Push<T>

Parameters

ParameterTypeDescription
value
T

The value to put in the returned event.

Push - Interface

Source Location: packages/core/src/source.ts#L53

Signature

interface Push<T> {
readonly type: PushType
readonly value: T
}

PushType

PushType - Type

Source Location: packages/core/src/source.ts#L24

Signature

type PushType = 0

PushType - Variable

Source Location: packages/core/src/source.ts#L28

Signature

var PushType: PushType