Skip to content

Commit

Permalink
fix: allow null values for no-content representations
Browse files Browse the repository at this point in the history
  • Loading branch information
ljobse committed Jul 22, 2024
1 parent 441fa4f commit 5bcfd4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/decorators/representer.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { arrayRepresenter, ClassType, listRepresenter, representer } from 'utils
* @category Decorator
*/
export const Representer = (
representation: ClassType<any>,
representation: ClassType<any> | null,
statusCode?: number,
options: {
contentType?: string;
Expand Down Expand Up @@ -56,7 +56,7 @@ export const Representer = (
* @category Decorator
*/
export const ListRepresenter = (
representation: ClassType<any>,
representation: ClassType<any> | null,
statusCode = 200,
options: {
contentType?: string;
Expand Down Expand Up @@ -89,7 +89,7 @@ export const ListRepresenter = (
* @category Decorator
*/
export const ArrayRepresenter = (
representation: ClassType<any>,
representation: ClassType<any> | null,
statusCode = 200,
options: {
contentType?: string;
Expand Down

0 comments on commit 5bcfd4f

Please sign in to comment.