Skip to content

@epikodelabs/streamix


@epikodelabs/streamix / src/public-api / DependencySource

Interface: DependencySource<T> ​

Defined in: projects/libraries/streamix/src/lib/atoms/atom.ts:119

Minimal reactive dependency contract accepted by derived formulas.

This intentionally supports foreign/read-only atom-like sources that expose synchronous .value reads plus a subscribe(...) change channel, even if they are not full Streamix atoms.

Type Parameters ​

T ​

T = any

Properties ​

value ​

readonly value: T

Defined in: projects/libraries/streamix/src/lib/atoms/atom.ts:120

Methods ​

subscribe() ​

subscribe(callback?): Subscription

Defined in: projects/libraries/streamix/src/lib/atoms/atom.ts:121

Parameters ​

callback? ​

(current, previous) => any

Returns ​

Subscription

Released under the MIT License.