Skip to content

@epikodelabs/streamix


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

Function: derivedExpr()

derivedExpr<TReturn, Self>(fn): DerivedExpr<Awaited<TReturn>, Self>

Defined in: projects/libraries/streamix/src/lib/atoms/expr.ts:82

Marks a scope field as a readonly derived expression.

Plain functions in config-form scopes are also treated as derived values, but this marker is useful when a more explicit definition is desired.

Type Parameters

TReturn

TReturn

Self

Self = any

Parameters

fn

(self) => TReturn

Returns

DerivedExpr<Awaited<TReturn>, Self>

Released under the GNU AGPL v3 or later.