Skip to content

FormatsMethods

@tsed/ajv

Usage

typescript
import { FormatsMethods } from "@tsed/ajv";

See /packages/specs/ajv/src/types/interfaces/FormatsMethods.ts.

Overview

ts
interface FormatsMethods<T extends string | number> {
    compare?: (data1: T, data2: T) => number | undefined;
    validate(data: T): boolean;
}

compare:

ts
compare?: (data1: T, data2: T) => number | undefined;

validate

ts
validate(data: T): boolean;

Released under the MIT License.