From ea49600849696dfe6d60c9a60c160be476bf1c7d Mon Sep 17 00:00:00 2001 From: Kevin Bulteel Date: Sat, 10 Feb 2024 19:21:18 +0100 Subject: [PATCH] fix: request prop can be any type --- packages/@hec.js/api/lib/src/routing/request.js | 2 +- packages/@hec.js/api/lib/types/src/routing/request.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/@hec.js/api/lib/src/routing/request.js b/packages/@hec.js/api/lib/src/routing/request.js index de64c76..ef9cd9f 100644 --- a/packages/@hec.js/api/lib/src/routing/request.js +++ b/packages/@hec.js/api/lib/src/routing/request.js @@ -41,7 +41,7 @@ export class ApiRequest extends Request { /** * @param { string } key - * @param { string | undefined } value + * @param { any } value * @returns { void | any } */ prop(key, value = undefined) { diff --git a/packages/@hec.js/api/lib/types/src/routing/request.d.ts b/packages/@hec.js/api/lib/types/src/routing/request.d.ts index 76aab50..b6fd3a4 100644 --- a/packages/@hec.js/api/lib/types/src/routing/request.d.ts +++ b/packages/@hec.js/api/lib/types/src/routing/request.d.ts @@ -18,10 +18,10 @@ export class ApiRequest extends Request { cookie(key: string): string; /** * @param { string } key - * @param { string | undefined } value + * @param { any } value * @returns { void | any } */ - prop(key: string, value?: string | undefined): void | any; + prop(key: string, value?: any): void | any; /** * @returns { Promise } */