@revideo/2d / decorators / initial
Function: initial()
initial<
T>(value):PropertyDecorator
Defined in: 2d/src/lib/decorators/signal.ts:157
Create an initial signal value decorator.
Type Parameters
T
T
Parameters
value
T
The initial value of the property.
Returns
PropertyDecorator
Remarks
This decorator specifies the initial value of a property.
Must be specified before the signal decorator.
Example
class Example {
\@initial(1)
\@property()
public declare length: Signal<number, this>;
}