Skip to Content

@revideo/2d


@revideo/2d / decorators / signal

Function: signal()

signal<T>(): PropertyDecorator

Defined in: 2d/src/lib/decorators/signal.ts:113 

Create a signal decorator.

Type Parameters

T

T

Returns

PropertyDecorator

Remarks

This decorator turns the given property into a signal.

The class using this decorator can implement the following methods:

  • get[PropertyName] - A property getter.
  • get[PropertyName] - A property setter.
  • tween[PropertyName] - A tween provider.

Example

class Example { \@property() public declare length: Signal<number, this>; }
© 2026 Haven Technologies, Inc.
Function: signal() – Revideo