fix types

This commit is contained in:
HorizonCode 2023-05-11 07:12:51 +02:00
parent d4075a6bb5
commit ef5a205bda

View File

@ -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],