refactor: AdapterConfig

This commit is contained in:
手瓜一十雪 committed 2024-11-16 18:38:44 +08:00
1 parent b92ce1f6b5
commit 8223c98bf1
7 files changed
+20 -12

No files matched your search

+5 -2
View File
@@ -25,10 +25,13 @@ interface v1Config {
reportSelfMessage: boolean;
token: string;
}
export interface AdapterConfig {
export interface AdapterConfigInner {
name: string;
enable: boolean;
}
export type AdapterConfigWrap = AdapterConfigInner & Partial<NetworkConfigAdapter>;
export interface AdapterConfig extends AdapterConfigInner {
[key: string]: any;
}