From c0eb6635964de276b44851df67fb857ae94dc401 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 21 Jul 2021 19:33:25 +0200 Subject: Made the custom request params and query string types into records. --- packages/server/src/fastify_types.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'packages') diff --git a/packages/server/src/fastify_types.ts b/packages/server/src/fastify_types.ts index baed761..ebaaac2 100644 --- a/packages/server/src/fastify_types.ts +++ b/packages/server/src/fastify_types.ts @@ -2,12 +2,8 @@ import { FastifyRequest, RequestGenericInterface } from "fastify"; import { ReplyGenericInterface } from "fastify/types/reply"; export interface Request extends RequestGenericInterface { - Params: { - [key: string]: string - }, - Querystring: { - [key: string]: string - } + Params: Record, + Querystring: Record } export interface Route extends Request, ReplyGenericInterface {} -- cgit v1.2.3-18-g5258