Skip to content

ErrorChainedMethods

@tsed/schema

Usage

typescript
import { ErrorChainedMethods } from "@tsed/schema";

See /packages/specs/schema/src/utils/withErrorMsg.ts.

Overview

ts
interface ErrorChainedMethods<T> {
    <T>(target: Object, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<T> | number): any;
    Error(msg: string): this;
}

ts
<T>(target: Object, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<T> | number): any;

Error

ts
Error(msg: string): this;

Released under the MIT License.