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