From b5380d8519f562b63c09216b93fc2d70f80d968d Mon Sep 17 00:00:00 2001 From: yuanlin94 Date: Thu, 22 Jan 2026 17:54:16 +0800 Subject: [PATCH] jsframework add boolean Signed-off-by: yuanlin94 --- runtime/main/app/bundle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/main/app/bundle.ts b/runtime/main/app/bundle.ts index 1db4c2b6..24b7936b 100644 --- a/runtime/main/app/bundle.ts +++ b/runtime/main/app/bundle.ts @@ -209,7 +209,7 @@ export function genTimerAPI(page: Page): object { animation.cancelAnimationFrame(n); }, setMonitorForCrownEvents: (...args) => { - const handler = function(event) { + const handler = function(event): boolean { return args[0](event, ...args.slice(1)); }; digitalCrown.setMonitorForCrownEvents(handler);