Skip to content

Commit 029deb9

Browse files
Fix incorrect type definitions
1 parent 9d95083 commit 029deb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export function ValidateClass(errorConstructor?: { new(): Error }): <TFunction e
165165
```
166166
*/
167167
export class TypeGuardError extends Error {
168-
public readonly path: string;
168+
public readonly path: string[];
169169
public readonly reason: Reason;
170170
}
171171

@@ -272,4 +272,4 @@ type Reason = ExpectedString
272272
*
273273
* @param getErrorObject
274274
*/
275-
export function setDefaultGetErrorObject(getErrorObject?: () => string | null): void;
275+
export function setDefaultGetErrorObject(getErrorObject?: () => { message: string, path: string[], reason: Reason } | null): void;

0 commit comments

Comments
 (0)