Module Modern.StaticMethods
Helpers for creating, composing, and validating static method decorators for the Stage 3 standard transform.
Import
ts
import { StaticMethods } from '@litert/decorator';
import { StaticMethods as StaticMethodsFromModern } from '@litert/decorator/modern';Functions
| Function | Description |
|---|---|
compose | Combine multiple static method decorators into one. |
validateArgs | Validate that arguments match the modern static method decorator form. |
withArgsCheck | Wrap a decorator callback with automatic argument validation. |
Typings
See Typings for the public callback, context, and option contracts exported by this namespace.
| Type | Description |
|---|---|
IContext | The context object passed to the static method decorator callback function. |
ICallbackFn | The callback function signature of static method decorators. |