Skip to content

@epikodelabs/streamix


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

Type Alias: DerivedScope

DerivedScope = {<A>(atom): A; <T>(...atoms): { [K in string | number | symbol]: AtomValue<T[K<K>]> }; read: A; use: T extends [U] ? U : T; } & Record<string, unknown>

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

Scope object passed to self-based derived formulas.

The scope is itself callable: $(atom) is shorthand for $.read(atom), and $(atom1, atom2) destructures multiple tracked atoms.

Released under the GNU AGPL v3 or later.