UNPKG

@tsed/schema

Version:
13 lines (12 loc) 547 B
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]>>>;