Framework-free factory that constructs a StreamController
and wraps its stores in Angular Signals. Callers must supply the
DestroyRef that owns the controller's lifetime — it's
already captured by the public injectStream helper.
Exported for advanced callers (e.g. testing utilities, custom factories) that prefer to manage injection scope themselves.
useStream<
T = Record<string, unknown>,
InterruptType = unknown,
ConfigurableType extends object = Record<string, unknown>
>(
options: UseStreamOptions<InferStateType<T>>,
destroyRef: DestroyRef
): UseStreamReturn<T, InterruptType, ConfigurableType>| Name | Type | Description |
|---|---|---|
options* | UseStreamOptions<InferStateType<T>> | |
destroyRef | DestroyRef |