feat: change GameExporter type
parent
714903c602
commit
bd69e62515
11
src/types.ts
11
src/types.ts
|
|
@ -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 = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue