Skip to content
This repository has been archived by the owner on Sep 3, 2020. It is now read-only.

Commit

Permalink
fix: ApiResponse decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed May 10, 2020
1 parent 1e52c6f commit 07e0b86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/decorators/api-response.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export interface ApiResponseSchemaHost extends Omit<ResponseObject, 'description

export type ApiResponseOptions = ApiResponseMetadata | ApiResponseSchemaHost;

export function ApiResponse(options: ApiResponseOptions): ApiResponseOptions {
return options;
export function ApiResponse(options?: ApiResponseOptions): ParameterDecorator {
return () => {};
}

export const ApiOkResponse = (options: ApiResponseOptions = {}) =>
Expand Down

0 comments on commit 07e0b86

Please sign in to comment.