Skip to content

Module Modern.StaticSetters

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

Import

ts
import { StaticSetters } from '@litert/decorator';
import { StaticSetters as StaticSettersFromModern } from '@litert/decorator/modern';

Functions

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