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