@tsed/schema
Version:
JsonSchema module for Ts.ED Framework
12 lines (11 loc) • 499 B
TypeScript
import type { AnyJsonSchema, JsonSchema } from "../domain/JsonSchema.js";
import type { Infer } from "../domain/types.js";
/**
* See https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.27
*
* See @@JsonSchema@@ to discover available methods.
*
* @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.27
* @schemaFunctional
*/
export declare function anyOf<S extends Array<AnyJsonSchema | null>>(...anyOf: S): JsonSchema<Infer<S[number]>>;