Skip to content

Commit

Permalink
add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
su8ru committed Oct 18, 2024
1 parent 9a238bc commit 47e30a3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/http/src/decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,13 @@ export function getCookieParamOptions(
return program.stateMap(HttpStateKeys.cookie).get(entity);
}

export function isCookieParam(program: Program, entity: Type) {
/**
* Check whether the given entity is a cookie parameter.
* @param program
* @param entity
* @returns True if the entity is a cookie parameter, false otherwise.
*/
export function isCookieParam(program: Program, entity: Type): boolean {
return program.stateMap(HttpStateKeys.cookie).has(entity);
}

Expand Down

0 comments on commit 47e30a3

Please sign in to comment.