feat: change GameExporter type

main
spacemeowx2 2022-11-23 04:36:38 +08:00 committed by imspace
parent 714903c602
commit bd69e62515
1 changed files with 3 additions and 8 deletions

View File

@ -284,17 +284,12 @@ export type CoopHistoryDetail = {
jobBonus: null | number; jobBonus: null | number;
}; };
export type GameExporter< export type GameExporter = {
T extends {
// type is seful when you implement more than one GameExporter on the same class
type: string;
} = Game,
> = {
name: string; name: string;
notExported: ( notExported: (
{ type, list }: { type: T["type"]; list: string[] }, { type, list }: { type: Game["type"]; list: string[] },
) => Promise<string[]>; ) => Promise<string[]>;
exportGame: (game: T) => Promise<{ url?: string }>; exportGame: (game: Game) => Promise<{ url?: string }>;
}; };
export type BankaraBattleHistories = { export type BankaraBattleHistories = {