diff options
| author | HampusM <hampus@hampusmat.com> | 2021-07-21 19:33:25 +0200 | 
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2021-07-21 19:33:25 +0200 | 
| commit | c0eb6635964de276b44851df67fb857ae94dc401 (patch) | |
| tree | 94269a37fd064183c300f949936e8a3cd339f520 | |
| parent | 055a76e7379db24e5fe6713f32127ce29a410a14 (diff) | |
Made the custom request params and query string types into records.
| -rw-r--r-- | packages/server/src/fastify_types.ts | 8 | 
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 {}  | 
