fix: as design

This commit is contained in:
pk5ls20
2024-12-17 07:07:04 +08:00
parent a0c479485d
commit 2d9cc4d198
3 changed files with 18 additions and 14 deletions

View File

@@ -38,15 +38,13 @@ export interface AdapterConfig extends AdapterConfigInner {
const createDefaultAdapterConfig = <T extends AdapterConfig>(config: T): T => config;
export const pluginDefaultConfigs = createDefaultAdapterConfig({
name: 'plugin',
messagePostFormat: 'array',
reportSelfMessage: false,
enable: true,
debug: false,
});
export type PluginConfig = typeof pluginDefaultConfigs;
export interface PluginConfig extends AdapterConfig {
name: string;
enable: boolean;
messagePostFormat: string;
reportSelfMessage: boolean;
debug: boolean;
}
export const httpServerDefaultConfigs = createDefaultAdapterConfig({
name: 'http-server',