Skip to main content

SignalContext

Type Parameters

Extended by

Constructors​

constructor​

Type Parameters

Parameters

Overwrites DependencyContext.constructor

Methods​

dispose​

public override dispose(): void
Overwrites DependencyContext.dispose

get​

public get(): TValue

getInitial​

public getInitial(): undefinedSignalValueTSetterValue

Get the initial value of this signal.


getter​

public getter(): TValue

isInitial​

public isInitial(): boolean

Check if the signal is currently using its initial value.

Examples


isTweening​

public isTweening(): boolean

Is the signal undergoing a tween?


parse​

public parsevalue: TSetterValue: TValue

Parameters


raw​

public raw(): undefinedSignalValueTSetterValue

Get the raw value of this signal.

If the signal was provided with a factory function, the function itself will be returned, without invoking it.

This method can be used to create copies of signals.

Examples


reset​

public reset(): TOwner

Reset the signal to its initial value (if one has been set).

Examples


save​

public save(): TOwner

Compute the current value of the signal and immediately set it.

This method can be used to stop the signal from updating while keeping its current value.

Examples


set​

Parameters


setter​

Parameters


toPromise​

Inherited from DependencyContext.toPromise

toSignal​


tweener​

Parameters


collectPromise​

static public collectPromiseTpromise: PromiseT: PromiseHandlenullT
static public collectPromiseTpromise: PromiseTinitialValue: T: PromiseHandleT

Type Parameters

Parameters

Inherited from DependencyContext.collectPromise

consumePromises​

static public consumePromises(): PromisePromiseHandleany[]
Inherited from DependencyContext.consumePromises

hasPromises​

static public hasPromises(): boolean
Inherited from DependencyContext.hasPromises