UNPKG

@typeofweb/schema

Version:

`@typeofweb/schema` is a lightweight and extensible library for data validation with full TypeScript support!

3 lines 424 B
import type { SomeSchema } from '../types'; export declare const array: <U extends readonly SomeSchema<unknown>[]>(...validators_0: U) => <S extends SomeSchema<unknown>>(schema?: S | undefined) => SomeSchema<import("../types").Pretty<S["__type"] extends readonly (infer TypeOfSchemaElement)[] ? readonly TypeOfSchemaElement[] : readonly import("../types").Pretty<U[number]["__type"]>[]>>; //# sourceMappingURL=array.d.ts.map