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 } */