39 lines
752 B
TypeScript
39 lines
752 B
TypeScript
export interface Restaurant {
|
|
id: string;
|
|
name: string;
|
|
rating: number;
|
|
price: string;
|
|
distance: string;
|
|
image: string;
|
|
category: string;
|
|
address: string;
|
|
openTime: string;
|
|
tel: string;
|
|
tag: string;
|
|
location: string;
|
|
}
|
|
|
|
export type SwipeDirection = "left" | "right";
|
|
|
|
export type MatchType = "unanimous" | "best" | "no_match" | null;
|
|
|
|
export interface RunnerUp {
|
|
id: string;
|
|
likes: number;
|
|
}
|
|
|
|
export interface RoomStatus {
|
|
roomId: string;
|
|
userCount: number;
|
|
match: string | null;
|
|
matchType: MatchType;
|
|
matchLikes: number;
|
|
runnerUps: RunnerUp[];
|
|
likeCounts: Record<string, number>;
|
|
swipeCounts: Record<string, number>;
|
|
restaurants: Restaurant[];
|
|
creatorId: string;
|
|
locked: boolean;
|
|
users: string[];
|
|
}
|