Module Compatible.Accessors
Helpers for creating and composing member accessor decorators that work across both legacy and modern TypeScript decorator transforms.
Import
ts
import { Accessors } from '@litert/decorator/compatible';Functions
| Function | Description |
|---|---|
compose | Combine multiple accessor decorators into one compatible decorator. |
create | Create a member accessor decorator supporting both legacy and modern decorator transforms. |
Typings
See Typings for the public callback, context, and option contracts exported by this namespace.
| Type | Description |
|---|---|
ILegacyContext | The normalized legacy member accessor decorator context. |
IModernContext | The locally declared modern member accessor decorator context shape. |
ILegacyFn | The compatible legacy implementation for a member accessor decorator. |
IModernFn | The compatible modern implementation for a member accessor decorator. |
ICreateOptions | The options used to create a compatible member accessor decorator. |
ICallbackFn | The compatible member accessor decorator callback signature. |