Skip to content

MapOfChainedDecorators

@tsed/schema

Usage

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

See /packages/specs/schema/src/types/decorators/collections/collectionOf.ts.

Overview

ts
interface MapOfChainedDecorators {
    (...args: any): any;
    MinProperties(minProperties: number): this;
    MaxProperties(maxProperties: number): this;
}

ts
(...args: any): any;

MinProperties

ts
MinProperties(minProperties: number): this;

An object instance is valid against minProperties if its number of properties is less than, or equal to, the value of this keyword.

WARNING

The value of this keyword MUST be a non-negative integer.

MaxProperties

ts
MaxProperties(maxProperties: number): this;

An object instance is valid against maxProperties if its number of properties is less than, or equal to, the value of this keyword.

WARNING

The value of this keyword MUST be a non-negative integer.

Released under the MIT License.