Module Legacy.ConstructorParameters
Helpers for creating, composing, and validating constructor parameter decorators for the Stage 2 experimental transform.
Import
ts
import { ConstructorParameters } from '@litert/decorator/legacy';Functions
| Function | Description |
|---|---|
compose | Combine multiple constructor parameter decorators into one. |
create | Create a constructor parameter decorator from a unified callback. |
validateArgs | Validate that arguments match the legacy constructor parameter 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 |
|---|---|
ICallbackFn | The callback function signature of class constructor parameter |
IContext | The context object passed to the unified function style constructor parameter |
IUnifiedFn | The unified function signature of class constructor parameter decorators. |