mirror of
https://github.com/maciejpedzich/racemash.git
synced 2024-11-27 16:15:47 +01:00
Consolidate models into a single file
This commit is contained in:
parent
e2566c3d32
commit
8585153cc7
17
src/models/index.ts
Normal file
17
src/models/index.ts
Normal file
@ -0,0 +1,17 @@
|
||||
export interface Photo {
|
||||
fileName: string;
|
||||
altText: string;
|
||||
rating: number;
|
||||
rd: number;
|
||||
vol: number;
|
||||
}
|
||||
|
||||
export interface Vote {
|
||||
photos: [string, string];
|
||||
result: 0 | 0.5 | 1;
|
||||
}
|
||||
|
||||
export interface Database {
|
||||
photos: Photo[];
|
||||
votes: Vote[];
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
export interface Photo {
|
||||
url: string;
|
||||
rating: number;
|
||||
ratingDeviation: number;
|
||||
volatility: number;
|
||||
altText: string;
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
export interface Vote {
|
||||
photos: [string, string];
|
||||
result: 0 | 0.5 | 1;
|
||||
}
|
Loading…
Reference in New Issue
Block a user