Skip to content

Module Compatible.StaticMethods

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

Import

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

Functions

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