Skip to content

ValidationPipe

@tsed/platform-params

Usage

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

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

Overview

ts
class ValidationPipe implements PipeMethods {
    constructor();
    coerceTypes(value: any, metadata: JsonParameterStore): any;
    skip(value: any, metadata: JsonParameterStore): boolean;
    transform(value: any, metadata: JsonParameterStore): Promise<any>;
    protected checkIsRequired(value: any, metadata: JsonParameterStore): boolean;
}

coerceTypes

ts
coerceTypes(value: any, metadata: JsonParameterStore): any;

skip

ts
skip(value: any, metadata: JsonParameterStore): boolean;

transform

ts
transform(value: any, metadata: JsonParameterStore): Promise<any>;

protected checkIsRequired

ts
protected checkIsRequired(value: any, metadata: JsonParameterStore): boolean;

Released under the MIT License.