Skip to content

Module Legacy.MethodParameters

Helpers for creating, composing, and validating method parameter decorators for the Stage 2 experimental transform.

Import

ts
import { MethodParameters } from '@litert/decorator/legacy';

Functions

FunctionDescription
composeCombine multiple method parameter decorators into one.
createCreate a method parameter decorator from a unified callback.
validateArgsValidate that arguments match the legacy method parameter decorator form.
withArgsCheckWrap a decorator callback with automatic argument validation.

Typings

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

TypeDescription
ICallbackFnThe callback function signature of class member method parameter
IContextThe context object passed to the unified function style method parameter
IUnifiedFnThe unified function signature of class member method parameter