Add explicit type annotations to AST traversal paths

Updated the performance monitor Vite plugin to add explicit type annotations to AST traversal callback parameters, improving type safety and clarity. Also removed a duplicate import in src/plugin/index.ts.
This commit is contained in:
手瓜一十雪
2025-08-15 19:02:53 +08:00
parent 25ff49e683
commit 94d060d99c
2 changed files with 11 additions and 319 deletions

View File

@@ -1,6 +1,5 @@
import { NapCatOneBot11Adapter, OB11Message } from '@/onebot';
import { ChatType, NapCatCore } from '@/core';
import { ChatType, NapCatCore } from '@/core';
import { ActionMap } from '@/onebot/action';
import { OB11PluginAdapter } from '@/onebot/network/plugin';