♻️ Refactor configuration change notification service

This commit is contained in:
2025-11-07 00:35:11 +08:00
parent 551e7e2cfd
commit 5902f482d9
11 changed files with 586 additions and 705 deletions

View File

@@ -12,6 +12,12 @@ import * as http$0 from "../../../net/http/models.js";
// @ts-ignore: Unused imports
import * as time$0 from "../../../time/models.js";
/**
* CancelFunc 取消订阅函数
* 调用此函数可以取消对配置的监听
*/
export type CancelFunc = any;
/**
* HttpRequest HTTP请求结构
*/
@@ -260,6 +266,14 @@ export class OSInfo {
}
}
/**
* ObserverCallback 观察者回调函数
* 参数:
* - oldValue: 配置变更前的值
* - newValue: 配置变更后的值
*/
export type ObserverCallback = any;
/**
* SelfUpdateResult 自我更新结果
*/