From 059412445c8ff4360e06f3576636995c0b355d6f Mon Sep 17 00:00:00 2001 From: Guga Guichard Date: Wed, 12 Jun 2024 16:12:52 -0300 Subject: [PATCH] chore: Change ParserSchema type to be more conformant to both Zod and Arktype --- src/types.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index e00c3c8..1c25abe 100644 --- a/src/types.ts +++ b/src/types.ts @@ -169,7 +169,9 @@ type ParserSchema = { } | { success: false - error: { issues: { path: Array; message: string }[] } + error: { + issues: ReadonlyArray<{ path: PropertyKey[]; message: string }> + } } }