From 463169a13ac41fd72df721a99f78280be0e57c2a Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Thu, 9 May 2024 00:30:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E4=B8=AA=E5=90=8D=EF=BC=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ica-rs/plugins/md5/{md5-api.ts => md5-api.mts} | 15 +++++++++++++++ ica-rs/plugins/md5/runs.ts | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) rename ica-rs/plugins/md5/{md5-api.ts => md5-api.mts} (94%) diff --git a/ica-rs/plugins/md5/md5-api.ts b/ica-rs/plugins/md5/md5-api.mts similarity index 94% rename from ica-rs/plugins/md5/md5-api.ts rename to ica-rs/plugins/md5/md5-api.mts index a40cba5..8f2a478 100644 --- a/ica-rs/plugins/md5/md5-api.ts +++ b/ica-rs/plugins/md5/md5-api.mts @@ -133,3 +133,18 @@ async function score_callback( } return await md5_module.score_callback(names, callback); } + +export { + FightResult, + WinRate, + WinRateResult, + WinRateCallback, + Score, + ScoreResult, + ScoreCallback, + fight, + win_rate, + win_rate_callback, + score, + score_callback, +}; diff --git a/ica-rs/plugins/md5/runs.ts b/ica-rs/plugins/md5/runs.ts index 698c42f..8a11829 100644 --- a/ica-rs/plugins/md5/runs.ts +++ b/ica-rs/plugins/md5/runs.ts @@ -1,7 +1,7 @@ const fs = require('fs'); const path = require('path'); -import { fight } from "./md5"; +import { fight } from "./md5-api.mts"; // 从文件的 ./input.txt 中读取输入 // 然后丢给 md5.js