signals
import {...} from "@revideo/core/lib/signals";
Value wrappers for easy dependency tracking and cache invalidation.
Classes
Interfaces
Type Aliases
CompoundSignal
type CompoundSignalTSetterValueTValue extends TSetterValueTKeys extends keyof TValue = keyof TValueTOwner = voidTContext = CompoundSignalContextTSetterValueTValueTKeysTOwner = SignalTSetterValueTValueTOwnerTContext[K in TKeys]: SignalTValue[K]TValue[K]TOwner extends void ? CompoundSignalTSetterValueTValueTKeysTOwnerTContext : TOwner
Type Parameters
TSetterValue
TValue extends TSetterValue
TKeys extends keyof TValue = keyof TValue
TOwner = void
TContext = CompoundSignalContextTSetterValueTValueTKeysTOwner
SignalGenerator
type SignalGeneratorTSetterValueTValue extends TSetterValue = ThreadGeneratorback: time: numbertimingFunction?: TimingFunctioninterpolationFunction?: InterpolationFunctionTValue => SignalGeneratorTSetterValueTValuedo: callback: () => void => SignalGeneratorTSetterValueTValuerun: task: ThreadGenerator => SignalGeneratorTSetterValueTValueto: SignalTweenTSetterValueTValuewait: duration: number => SignalGeneratorTSetterValueTValue
Type Parameters
TSetterValue
TValue extends TSetterValue
SignalValue
Type Parameters
SimpleSignal
Type Parameters
Variables
DEFAULT
Functions
createComputed
Type Parameters
Parameters
createComputedAsync
Type Parameters
Parameters
createSignal
public createSignalTValueTOwner = voidinitial?: SignalValueTValueinterpolation: InterpolationFunctionTValueany[] = deepLerpowner?: TOwner: SimpleSignalTValueTOwner
Type Parameters
Parameters
initial?: SignalValueTValue
interpolation: InterpolationFunctionTValueany[] = deepLerp
owner?: TOwner
isReactive
public isReactiveTvalue: SignalValueT: value is () => T
Type Parameters
Parameters
modify
public modifyTFromTTovalue: SignalValueTFrommodification: value: TFrom => TTo: SignalValueTTo
Type Parameters
Parameters
unwrap
public unwrapTvalue: SignalValueT: T