starshard/peafowl
Template
1
Fork 0
mirror of https://github.com/starshardstudio/peafowl.git synced 2024-11-23 13:34:20 +00:00

Correct more mistakes in anime.ts

This commit is contained in:
Steffo 2024-11-05 13:39:28 +01:00
parent dca878308d
commit ee9e527050
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -12,7 +12,7 @@ export interface AnimeData extends ReviewData {
mastered_on?: Date; mastered_on?: Date;
} }
export type AnimePage = Lume.Page<GameData>; export type AnimePage = Lume.Page<AnimeData>;
export enum AnimeProgress { export enum AnimeProgress {
Unset = "", Unset = "",
@ -91,6 +91,6 @@ export function animeProgressToNumber(progress?: AnimeProgress): number {
} }
} }
export function compareAnimeProgress(a: GameData, b: GameData): number { export function compareAnimeProgress(a: AnimeData, b: AnimeData): number {
return animeProgressToNumber(a.progress) - animeProgressToNumber(b.progress); return animeProgressToNumber(a.progress) - animeProgressToNumber(b.progress);
} }