Skip to content

Module Modern.Getters

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

Import

ts
import { Getters } from '@litert/decorator';
import { Getters as GettersFromModern } from '@litert/decorator/modern';

Functions

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