Files
physical-expo/types/api.ts

30 lines
442 B
TypeScript

export interface Sport {
id: number;
name: string;
description: string;
icon: string;
isActive: boolean;
updatedAt: string;
createdAt: string;
}
export interface Match {
id: string;
league: string;
time: string;
home: string;
away: string;
meta?: string;
scoreText: string;
fav: boolean;
}
export interface ApiResponse<T> {
code: number;
message: string;
data: {
list: T[];
total: number;
};
}