Skip to content

Module Modern.StaticProperties

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

Import

ts
import { StaticProperties } from '@litert/decorator';
import { StaticProperties as StaticPropertiesFromModern } from '@litert/decorator/modern';

Functions

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