Skip to content

UnsupportedDecoratorType

@tsed/core

Usage ​

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

See /packages/core/src/errors/UnsupportedDecoratorType.ts.

Overview ​

ts
class UnsupportedDecoratorType extends Error {
    name: "UNSUPPORTED_DECORATOR_TYPE";
    constructor(decorator: any, args: any[]);
}

Description ​

Error thrown when a decorator is used in an unsupported location or context.

Provides a descriptive message indicating where the decorator was applied and why it's invalid.

name ​

ts
name: "UNSUPPORTED_DECORATOR_TYPE";

Released under the MIT License.