Module Legacy.Accessors
Helpers for creating, composing, and validating member accessor decorators for the Stage 2 experimental transform.
Import
ts
import { Accessors } from '@litert/decorator/legacy';Functions
| Function | Description |
|---|---|
compose | Combine multiple accessor decorators into one. |
create | Create a member accessor decorator from a unified callback. |
validateArgs | Validate that arguments match the legacy accessor 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 member accessor decorators. |
IContext | The context object passed to the unified function style accessor decorator |
IUnifiedFn | The unified function signature of class member accessor decorators. |