diff --git a/src/index.d.ts b/src/index.d.ts new file mode 100644 index 0000000..d020cdf --- /dev/null +++ b/src/index.d.ts @@ -0,0 +1,13 @@ +export declare class ValidationError { + readonly valueName: string; + readonly expectedTypes: ReadonlyArray; + readonly value: unknown; + readonly nested: ReadonlyArray; + + constructor( + valueName: string, + value: unknown, + expectedTypes?: string | ReadonlyArray, + nested?: ReadonlyArray, + ); +}