Skip to content

Module Legacy.Getters

Helpers for creating, composing, and validating member getter decorators for the Stage 2 experimental transform.

Import

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

Functions

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