Skip to content

set

@tsed/schema

Usage

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

See /packages/specs/schema/src/types/fn/collection.ts.

Overview

ts
function set(): JsonSchema;

Description

Declare a new array model with uniqueItems: true.

json
{
  "type": "array",
  "uniqueItems": true
}

See JsonSchema to discover available methods.

Released under the MIT License.