Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Support sending notifications on HarmonyOS https://github.com/siyuan-note/siyuan/issues/17125

Danielb0abc4790189
diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.ts
index 78336d6900..aae38ce66a 100644
--- a/app/src/types/index.d.ts
+++ b/app/src/types/index.d.ts
@@ -255,7 +255,8 @@ interface Window {
getScreenWidthPx(): number
exit(): void
setWebViewFocusable(enable: boolean): void
- sendNotification(channel: string, title: string, body: string, delayInSeconds: number): void
+ sendNotification(channel: string, title: string, body: string, delayInSeconds: number): number
+ cancelNotification(id: number): void
};
JSHarmony: {
showKeyboard(): void
@@ -275,6 +276,7 @@ interface Window {
exit(): void
setWebViewFocusable(enable: boolean): void
sendNotification(channel: string, title: string, body: string, delayInSeconds: number): void
+ cancelNotification(id: number): void
};
Protyle: import("../protyle/method").default;