Skip to content

ErrorMsg

@tsed/schema

Usage

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

See /packages/specs/schema/src/types/decorators/common/errorMsg.ts.

Overview

ts
function ErrorMsg(obj: Record<string, string>): (...args: any[]) => any;

Description

Add an error message to the property.

Released under the MIT License.