Skip to content

Module Legacy.StaticSetters

Helpers for creating, composing, and validating static setter decorators for the Stage 2 experimental transform.

Import

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

Functions

FunctionDescription
composeCombine multiple static setter decorators into one.
createCreate a static setter decorator from a unified callback.
validateArgsValidate that arguments match the legacy 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
ICallbackFnThe callback function signature of class static setter decorators.
IContextThe context object passed to the unified function style static setter
IUnifiedFnThe unified function signature of class static setter decorators.