Declare config property in OB11PluginMangerAdapter

Adds an explicit declaration for the 'config' property in the OB11PluginMangerAdapter class to improve type safety and clarity.
This commit is contained in:
手瓜一十雪 2025-09-02 22:42:09 +08:00
parent a0f3d66607
commit 0ab8d025bf

View File

@ -32,7 +32,7 @@ export interface LoadedPlugin {
export class OB11PluginMangerAdapter extends IOB11NetworkAdapter<PluginConfig> {
private readonly pluginPath: string;
private loadedPlugins: Map<string, LoadedPlugin> = new Map();
declare config: PluginConfig;
constructor(
name: string, core: NapCatCore, obContext: NapCatOneBot11Adapter, actions: ActionMap
) {