Skip to content

ValidatorServiceMethods

@tsed/platform-params

Usage

typescript
import { ValidatorServiceMethods } from "@tsed/platform-params";

See /packages/platform/platform-params/src/types/pipes/ValidationPipe.ts.

Overview

ts
interface ValidatorServiceMethods {
    readonly name: string;
    validate(value: any, options: any): Promise<any>;
}

readonly name

ts
readonly name: string;

validate

ts
validate(value: any, options: any): Promise<any>;

Released under the MIT License.