Skip to content

Commit

Permalink
refactor(types): clarify 'validationContext' type with union
Browse files Browse the repository at this point in the history
Co-authored-by: Manuel Spigolon <behemoth89@gmail.com>
  • Loading branch information
jakubburzynski and Eomm committed Oct 21, 2022
1 parent 9f07a5d commit d67ffd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastify.d.ts
Expand Up @@ -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";
}
}

Expand Down

0 comments on commit d67ffd3

Please sign in to comment.