Skip to content

Module Compatible.StaticAccessors

Helpers for creating and composing static accessor decorators that work across both legacy and modern TypeScript decorator transforms.

Import

ts
import { StaticAccessors } from '@litert/decorator/compatible';

Functions

FunctionDescription
composeCombine multiple static accessor decorators into one compatible decorator.
createCreate a static accessor decorator supporting both legacy and modern decorator transforms.

Typings

See Typings for the public callback, context, and option contracts exported by this namespace.

TypeDescription
ILegacyContextThe normalized legacy static accessor decorator context.
IModernContextThe locally declared modern static accessor decorator context shape.
ILegacyFnThe compatible legacy implementation for a static accessor decorator.
IModernFnThe compatible modern implementation for a static accessor decorator.
ICreateOptionsThe options used to create a compatible static accessor decorator.
ICallbackFnThe compatible static accessor decorator callback signature.