Files
tolaria/src/types/laputaTestBridge.ts
2026-05-27 14:51:32 +02:00

25 lines
768 B
TypeScript

import type {
AppCommandShortcutEventInit,
AppCommandShortcutEventOptions,
} from '../hooks/appCommandCatalog'
export interface LaputaTestBridge {
activeTabPath?: string | null
dispatchAppCommand?: (id: string) => void
openDeepLink?: (url: string) => void
dispatchShortcutEvent?: (init: AppCommandShortcutEventInit) => void
dispatchBrowserMenuCommand?: (id: string) => void
triggerMenuCommand?: (id: string) => Promise<unknown>
triggerShortcutCommand?: (id: string, options?: AppCommandShortcutEventOptions) => void
seedBlockNoteTable?: (columnWidths?: Array<number | null>) => Promise<void> | void
seedAutoGitSavedChange?: () => Promise<void> | void
}
declare global {
interface Window {
__laputaTest?: LaputaTestBridge
}
}
export {}