Skip to content

Module Modern.Methods

Helpers for creating, composing, and validating member method decorators for the Stage 3 standard transform.

Import

ts
import { Methods } from '@litert/decorator';
import { Methods as MethodsFromModern } from '@litert/decorator/modern';

Functions

FunctionDescription
composeCombine multiple method decorators into one.
validateArgsValidate that arguments match the modern method 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
IContextThe context object passed to the member method decorator callback function.
ICallbackFnThe callback function signature of class member method decorators.