---
meta:
 - name: keywords
   description: api typescript node.js documentation ErrorChainedMethods interface
---
# ErrorChainedMethods - @tsed/schema

## Usage

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

> See [/packages/specs/schema/src/utils/withErrorMsg.ts](https://github.com/tsedio/tsed/blob/v8.27.0/packages/specs/schema/src/utils/withErrorMsg.ts#L0-L0).

## Overview

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

<!-- Members -->

##

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

## Error

```ts
Error(msg: string): this;
```
