-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from CHZZK-Study/fix/clean-type
fix: 타입 정리
- Loading branch information
Showing
37 changed files
with
229 additions
and
265 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
declare module 'AuctionDetails' { | ||
export interface IAuctionDetailsBase { | ||
productId: number; | ||
sellerName: string; | ||
description: string; | ||
productName: string; | ||
minPrice: number; | ||
imageList: string[]; | ||
} | ||
|
||
export interface IAuctionDetails extends IAuctionDetailsBase { | ||
timeRemaining: number; | ||
status: string; | ||
isSeller: boolean; | ||
participantCount: number; | ||
isParticipating: boolean; | ||
bidId: number | null; | ||
bidAmount: number; | ||
remainingBidCount: number; | ||
} | ||
|
||
export interface IPreAuctionDetails extends IAuctionDetailsBase { | ||
createdAt: string; | ||
likeCount: number; | ||
isLiked: boolean; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
declare module 'AuctionItem' { | ||
export interface IAuctionItemBase { | ||
id: number; | ||
name: string; | ||
minPrice: number; | ||
cdnPath: string; | ||
} | ||
|
||
export interface IPreAuctionItem extends IAuctionItemBase { | ||
likeCount: number; | ||
isLiked: boolean; | ||
} | ||
|
||
export interface IPreAuctionRegisteredItem extends IPreAuctionItem { | ||
createdAt: string; | ||
} | ||
|
||
export interface IAuctionItem extends IAuctionItemBase { | ||
participantCount: number; | ||
timeRemaining: number; | ||
isParticipating: boolean; | ||
} | ||
export interface IAuctionRegisteredItem extends IAuctionItem { | ||
status: string; | ||
createdAt: string; | ||
} | ||
|
||
export interface IUserAuctionWonItem extends IAuctionItemBase { | ||
endDateTime: string; | ||
winningBid: number; | ||
} | ||
|
||
export interface IUserAuctionLostItem extends IAuctionItemBase { | ||
endDateTime: string; | ||
highestBid: number; | ||
} | ||
|
||
export interface IUserAuctionHistoryItem extends Omit<IAuctionItem, 'isParticipating'> {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.