Skip to content

Commit

Permalink
chore: Update ResponseDTO to use generic type for data
Browse files Browse the repository at this point in the history
  • Loading branch information
PleBea committed Jul 13, 2024
1 parent 632e058 commit 739b00a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/dto/response.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ApiProperty } from '@nestjs/swagger';

type StatusType = 'success' | 'error';

export abstract class ResponseDTO<T> {
export abstract class ResponseDTO<T = object> {
@ApiProperty()
status: StatusType;

Expand Down

0 comments on commit 739b00a

Please sign in to comment.