Skip to content

Interface: CreateStreamBuilderState<TEvent, TPayload> ​

Defined in: builders/create-stream-builder-state.ts:13

Optional copy-on-write state for createStreamBuilder.

Captures the bound stream source, optional event filter predicate, target signal node, and event-to-signal payload mapper.

Type Parameters ​

Type ParameterDefault typeDescription
TEventunknownInbound event type.
TPayloadunknownOutbound signal payload type.

Properties ​

PropertyModifierTypeDescriptionDefined in
filterFn?readonly(event) => booleanOptional synchronous filter predicate.builders/create-stream-builder-state.ts:17
mapPayload?readonly(event) => TPayloadSynchronous event-to-signal payload mapper.builders/create-stream-builder-state.ts:21
signal?readonlySignalNode<TPayload>Target signal AST node.builders/create-stream-builder-state.ts:19
source?readonlyGithubWebhookStreamNode<TEvent>Bound stream source AST node.builders/create-stream-builder-state.ts:15

Released under the MIT License.