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