mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-19 05:05:44 +08:00
Introduced new interface definitions in napcat-common for logging, status, and subscription. Refactored napcat-webui-backend to use these interfaces, decoupling it from napcat-core and napcat-onebot. Moved OneBot config schema to backend and updated imports. Updated framework and shell to pass subscriptions to InitWebUi. Improved type safety and modularity across backend and shared packages.
6 lines
201 B
TypeScript
6 lines
201 B
TypeScript
export type LogListener = (msg: string) => void;
|
|
export interface ISubscription {
|
|
subscribe (listener: LogListener): void;
|
|
unsubscribe (listener: LogListener): void;
|
|
notify (msg: string): void;
|
|
} |