From 6a1cb8589d0b9f7bcee6a6b79d1994b7723dd20f Mon Sep 17 00:00:00 2001 From: ayangweb <473033518@qq.com> Date: Wed, 20 May 2026 18:06:49 +0800 Subject: [PATCH] fix: add missing commas in interface definitions for consistency --- src/types/platform.ts | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/types/platform.ts b/src/types/platform.ts index 3cd43d33..41880ce4 100644 --- a/src/types/platform.ts +++ b/src/types/platform.ts @@ -78,7 +78,7 @@ export interface WindowOperations { createWebviewWindow: (label: string, options: any) => Promise; listenWindowEvent: ( event: string, - callback: (event: any) => void + callback: (event: any) => void, ) => Promise<() => void>; getCurrentWindowLabel: () => Promise; } @@ -87,17 +87,17 @@ export interface WindowOperations { export interface ThemeAndEvents { emitEvent: ( event: K, - payload?: any + payload?: any, ) => Promise; listenEvent: ( event: K, - callback: (event: { payload: EventPayloads[K] }) => void + callback: (event: { payload: EventPayloads[K] }) => void, ) => Promise<() => void>; onThemeChanged: ( - callback: (payload: { payload: string }) => void + callback: (payload: { payload: string }) => void, ) => Promise; listenThemeChanged: ( - callback: (theme: AppTheme) => void + callback: (theme: AppTheme) => void, ) => Promise<() => void>; } @@ -109,7 +109,7 @@ export interface SystemOperations { checkMicrophonePermission: () => Promise; requestMicrophonePermission: () => void; checkCameraPermission: () => Promise; - requestCameraPermission: () => void; + requestCameraPermission: () => Promise; requestScreenRecordingPermission: () => void; getScreenshotableMonitors: () => Promise; getScreenshotableWindows: () => Promise; @@ -126,12 +126,12 @@ export interface SystemOperations { revealItemInDir: (path: string) => Promise; openSearchItem: ( data: SearchDocument, - formatUrl?: (item: SearchDocument) => string + formatUrl?: (item: SearchDocument) => string, ) => Promise; searchMCPServers: (serverId: string, queryParams: string[]) => Promise; searchDataSources: ( serverId: string, - queryParams: string[] + queryParams: string[], ) => Promise; fetchAssistant: (serverId: string, queryParams: string[]) => Promise; openLogDir: () => Promise; @@ -139,6 +139,4 @@ export interface SystemOperations { // Base platform adapter interface export interface BasePlatformAdapter - extends WindowOperations, - ThemeAndEvents, - SystemOperations {} + extends WindowOperations, ThemeAndEvents, SystemOperations {}