Skip to content

AnyDecorator

@tsed/core

Usage

typescript
import { AnyDecorator } from "@tsed/core/src/types/AnyDecorator";

See /packages/core/src/types/AnyDecorator.ts.

Overview

ts
type AnyDecorator = any | ClassDecorator | MethodDecorator | PropertyDescriptor | ParameterDecorator;

Description

Utility union representing any decorator type supported by TypeScript.

Used by Ts.ED to type APIs that accept class, method, property or parameter decorators. This type is handy when a helper must remain generic with regard to the decorated target.

Released under the MIT License.