Skip to content

Module Compatible.Classes

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

Import

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

Functions

FunctionDescription
composeCombine multiple class decorators into one compatible decorator.
createCreate a class 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 legacy class decorator context passed to the compatible legacy callback.
IModernContextMinimal modern class decorator context shape.
ILegacyFnThe compatible legacy class decorator implementation.
IModernFnThe compatible modern class decorator implementation.
ICreateOptionsThe options used to create a compatible class decorator.
ICallbackFnThe compatible class decorator callback signature.