Files
memecoin-botV2/.pnpm-store/v10/files/08/705cbec360d20cb3de3f66429c0215cbc9aaa42ac91f7279bd5ed7b5b483af2e45101efd00444e49bd4a9bd6168df7a6b39384b978c6b662ae7e30089508be

33 lines
1016 B
Plaintext

/**
* A `StructFailure` represents a single specific failure in validation.
*/
export type Failure = {
value: any;
key: any;
type: string;
refinement: string | undefined;
message: string;
explanation?: string;
branch: Array<any>;
path: Array<any>;
};
/**
* `StructError` objects are thrown (or returned) when validation fails.
*
* Validation logic is design to exit early for maximum performance. The error
* represents the first error encountered during validation. For more detail,
* the `error.failures` property is a generator function that can be run to
* continue validation and receive all the failures in the data.
*/
export declare class StructError extends TypeError {
value: any;
key: any;
type: string;
refinement: string | undefined;
path: Array<any>;
branch: Array<any>;
failures: () => Array<Failure>;
[x: string]: any;
constructor(failure: Failure, failures: () => Generator<Failure>);
}
//# sourceMappingURL=error.d.ts.map