1 | import { Struct, StructResult, StructFailure, StructContext } from './struct';
|
2 | export declare type StructRecord<T> = Record<string, Struct<T>>;
|
3 | export declare type StructTuple<T> = {
|
4 | [K in keyof T]: Struct<T[K]>;
|
5 | };
|
6 | /**
|
7 | * Convert a validation result to an iterable of failures.
|
8 | */
|
9 | export declare function toFailures(result: StructResult, context: StructContext): Iterable<StructFailure>;
|