DecoratorTypes
@tsed/core
Usage
typescript
import { DecoratorTypes } from "@tsed/core";Overview
ts
enum DecoratorTypes {
PARAM = "parameter",
PARAM_CTOR = "parameter.constructor",
PARAM_STC = "parameter.static",
PROP = "property",
PROP_STC = "property.static",
METHOD = "method",
METHOD_STC = "method.static",
CLASS = "class"
}Description
Normalized decorator kinds recognized by Ts.ED.
This enum helps identify, at runtime, the element a decorator applies to (parameter, property, method, class, and static/constructor variants).
ts
PARAM
ts
PARAM = "parameter",
ts
PARAM_STC
ts
PARAM_STC = "parameter.static",
ts
PROP
ts
PROP = "property",
ts
PROP_STC
ts
PROP_STC = "property.static",
ts
METHOD
ts
METHOD = "method",
ts
METHOD_STC
ts
METHOD_STC = "method.static",
ts
CLASS
ts
CLASS = "class"