aboutsummaryrefslogtreecommitdiff
path: root/packages/server
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-07-21 19:33:25 +0200
committerHampusM <hampus@hampusmat.com>2021-07-21 19:33:25 +0200
commitc0eb6635964de276b44851df67fb857ae94dc401 (patch)
tree94269a37fd064183c300f949936e8a3cd339f520 /packages/server
parent055a76e7379db24e5fe6713f32127ce29a410a14 (diff)
Made the custom request params and query string types into records.
Diffstat (limited to 'packages/server')
-rw-r--r--packages/server/src/fastify_types.ts8
1 files changed, 2 insertions, 6 deletions
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<string, string>,
+ Querystring: Record<string, string>
}
export interface Route extends Request, ReplyGenericInterface {}