Module Compatible.Methods
Helpers for creating and composing member method decorators that work across both legacy and modern TypeScript decorator transforms.
Import
ts
import { Methods } from '@litert/decorator/compatible';Functions
| Function | Description |
|---|---|
compose | Combine multiple method decorators into one compatible decorator. |
create | Create a member method 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 method decorator context. |
IModernContext | The locally declared modern member method decorator context shape. |
ILegacyFn | The compatible legacy implementation for a member method decorator. |
IModernFn | The compatible modern implementation for a member method decorator. |
ICreateOptions | The options used to create a compatible member method decorator. |
ICallbackFn | The compatible member method decorator callback signature. |