From ef5a205bdac6de5bed97a5aec154ee6bddf59cd2 Mon Sep 17 00:00:00 2001 From: HorizonCode Date: Thu, 11 May 2023 07:12:51 +0200 Subject: [PATCH] fix types --- http_server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_server.ts b/http_server.ts index b7f35eb..4e7ad9e 100644 --- a/http_server.ts +++ b/http_server.ts @@ -118,7 +118,7 @@ export class HTTPServer { const routeParamsMap: RouteParam[] = extractRouteParams(route.path); const routeSegments: string[] = filepath.split("/"); routeRequest.pathParams = routeParamsMap.reduce( - (accum: { [key: string]: string | number }, curr: RouteParam) => { + (accum: { [key: string]: string }, curr: RouteParam) => { return { ...accum, [curr.paramKey]: routeSegments[curr.idx],