UNPKG

@tsed/schema

Version:
44 lines (43 loc) 842 B
import type { JsonSchema } from "../domain/JsonSchema.js"; /** * Declare a new object model with `additionalProperties: true`. * * ```json * { * "type": "array" * } * ``` * * * See @@JsonSchema@@ to discover available methods. * * @schemaFunctional */ export declare function array(): JsonSchema; /** * Declare a new object model with `additionalProperties: true`. * * ```json * { * "type": "object", * "additionalProperties": true * } * ``` * * * See @@JsonSchema@@ to discover available methods. * * @schemaFunctional */ export declare function map(): JsonSchema; /** * Declare a new array model with `uniqueItems: true`. * * ```json * { * "type": "array", * "uniqueItems": true * } * ``` * * * See @@JsonSchema@@ to discover available methods. */ export declare function set(): JsonSchema;