We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d95083 commit 029deb9Copy full SHA for 029deb9
index.d.ts
@@ -165,7 +165,7 @@ export function ValidateClass(errorConstructor?: { new(): Error }): <TFunction e
165
```
166
*/
167
export class TypeGuardError extends Error {
168
- public readonly path: string;
+ public readonly path: string[];
169
public readonly reason: Reason;
170
}
171
@@ -272,4 +272,4 @@ type Reason = ExpectedString
272
*
273
* @param getErrorObject
274
275
-export function setDefaultGetErrorObject(getErrorObject?: () => string | null): void;
+export function setDefaultGetErrorObject(getErrorObject?: () => { message: string, path: string[], reason: Reason } | null): void;
0 commit comments