Skip to content

Commit

Permalink
fix: request prop can be any type
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBLT committed Feb 10, 2024
1 parent 7a15776 commit ea49600
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/@hec.js/api/lib/src/routing/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions packages/@hec.js/api/lib/types/src/routing/request.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Uint8Array | { [key: string]: any } | string> }
*/
Expand Down

0 comments on commit ea49600

Please sign in to comment.