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