Skip to content

Module Modern.Classes

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

Import

ts
import { Classes } from '@litert/decorator';
import { Classes as ClassesFromModern } from '@litert/decorator/modern';

Functions

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