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