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