refactor: reloadNetwork

This commit is contained in:
手瓜一十雪
2024-11-16 18:10:03 +08:00
parent ce6b8ffdfe
commit 8a4591376a
7 changed files with 176 additions and 151 deletions

View File

@@ -122,6 +122,7 @@ export const mergeNetworkDefaultConfig = {
websocketClients: websocketClientDefaultConfigs,
} as const;
export type NetworkConfigAdapter = HttpServerConfig | HttpClientConfig | WebsocketServerConfig | WebsocketClientConfig;
type NetworkConfigKeys = keyof typeof mergeNetworkDefaultConfig;
export function mergeOneBotConfigs(