From bd69e625158e4f7ef0fbad7b2d8c8cfb477c9edb Mon Sep 17 00:00:00 2001 From: spacemeowx2 Date: Wed, 23 Nov 2022 04:36:38 +0800 Subject: [PATCH] feat: change GameExporter type --- src/types.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/types.ts b/src/types.ts index 53860f5..6052a95 100644 --- a/src/types.ts +++ b/src/types.ts @@ -284,17 +284,12 @@ export type CoopHistoryDetail = { jobBonus: null | number; }; -export type GameExporter< - T extends { - // type is seful when you implement more than one GameExporter on the same class - type: string; - } = Game, -> = { +export type GameExporter = { name: string; notExported: ( - { type, list }: { type: T["type"]; list: string[] }, + { type, list }: { type: Game["type"]; list: string[] }, ) => Promise; - exportGame: (game: T) => Promise<{ url?: string }>; + exportGame: (game: Game) => Promise<{ url?: string }>; }; export type BankaraBattleHistories = {