From 831ebc3786db28aa1effbc732bcd2139d86947f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20=C3=98sterkilde?= Date: Wed, 31 Jul 2024 00:17:48 +0200 Subject: [PATCH] chore(validathor): minor parser type improvement --- packages/validathor/src/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/validathor/src/types.ts b/packages/validathor/src/types.ts index a374ac6..ea76e7c 100644 --- a/packages/validathor/src/types.ts +++ b/packages/validathor/src/types.ts @@ -5,7 +5,7 @@ export type Modifier = Custom | Enumerator | Min | Max | Email // TODO: Improve the parser type to more accurately reflect the return type -export type Parser = { +export type Parser = { name: string - parse: (input: unknown) => T + parse: (input: U) => T }