racemash/src/models/index.ts

19 lines
288 B
TypeScript

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[];
shownFactIndexes: number[];
}