From d67ffd3705b33753398042b51f9310d955961470 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Burzy=C5=84ski?= <33811303+jakubburzynski@users.noreply.github.com> Date: Fri, 21 Oct 2022 14:42:10 +0200 Subject: [PATCH] refactor(types): clarify 'validationContext' type with union Co-authored-by: Manuel Spigolon --- fastify.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastify.d.ts b/fastify.d.ts index bc9eea7731d..787d9326fbf 100644 --- a/fastify.d.ts +++ b/fastify.d.ts @@ -183,7 +183,7 @@ type TrustProxyFunction = (address: string, hop: number) => boolean declare module '@fastify/error' { interface FastifyError { validation?: ValidationResult[]; - validationContext?: string; + validationContext?: "body" | "headers" | "parameters" | "querystring"; } }