Skip to content

Module Compatible.Methods

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

Import

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

Functions

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