Skip to content

Module Compatible.StaticProperties

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

Import

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

Functions

FunctionDescription
composeCombine multiple static property decorators into one compatible decorator.
createCreate a static property 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 property decorator context.
IModernContextThe locally declared modern static property decorator context shape.
ILegacyFnThe compatible legacy implementation for a static property decorator.
IModernFnThe compatible modern implementation for a static property decorator.
ICreateOptionsThe options used to create a compatible static property decorator.
ICallbackFnThe compatible static property decorator callback signature.