Module Legacy.StaticProperties
Helpers for creating, composing, and validating static property decorators for the Stage 2 experimental transform.
Import
ts
import { StaticProperties } from '@litert/decorator/legacy';Functions
| Function | Description |
|---|---|
compose | Combine multiple static property decorators into one. |
create | Create a static property decorator from a unified callback. |
validateArgs | Validate that arguments match the legacy static property decorator form. |
withArgsCheck | Wrap a decorator callback with automatic argument validation. |
Typings
See Typings for the public callback, context, and option contracts exported by this namespace.
| Type | Description |
|---|---|
ICallbackFn | The callback function signature of class static property decorators. |
IContext | The context object passed to the unified function style static property |
IUnifiedFn | The unified function signature of class static property decorators. |