import { DBaseStateSet } from "./d-base-state-set"; /** * A {@link DBaseState}-aware function returning R. */ export type DStateAware = (state: DBaseStateSet) => R; /** * R or a {@link DBaseState}-aware function returning R. */ export type DStateAwareOrValue = DStateAware | R; /** * R or a {@link DBaseState}-aware function returning R. * If a computed value is undefined, the computed value is supposed to be ignored. */ export type DStateAwareOrValueMightBe = DStateAwareOrValue;