Skip to content

decoratorTypeOf

@tsed/core

Usage ​

typescript
import { decoratorTypeOf } from "@tsed/core";

See /packages/core/src/utils/decoratorTypeOf.ts.

Overview ​

ts
function decoratorTypeOf(args: any[]): DecoratorTypes;

Description ​

Determines the decorator type from decorator parameters.

Analyzes the target, propertyKey, and descriptor to classify the decorator as class, method, property, parameter, or their static variants.

Released under the MIT License.