Skip to content

Interface: BaseStreamSourceASTNode<TType, TEvent> ​

Defined in: ast/base/base-stream-source-ast-node.ts:10

Domain-agnostic base AST node contract for asynchronous event stream sources (StreamSourceASTNode).

Resolved via RuntimeExecutorRegistry.streamSources[node.type] into a StreamSource subscribed to by P.stream().

Extended by ​

Type Parameters ​

Type ParameterDefault typeDescription
TType extends stringstringString-literal discriminant of the stream source node.
TEventunknownRaw event payload type emitted by the stream source.

Properties ​

PropertyModifierTypeDescriptionDefined in
__eventBrand?readonlyTEventPhantom type brand preserving the stream event payload type.ast/base/base-stream-source-ast-node.ts:14
typereadonlyTTypeUnique string-literal discriminant of the stream source node.ast/base/base-stream-source-ast-node.ts:12

Released under the MIT License.