mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 11:58:41 +00:00
13 lines
729 B
TypeScript
13 lines
729 B
TypeScript
interface Window {
|
|
/**
|
|
* After analyzing the `exposeInMainWorld` calls,
|
|
* `packages/preload/exposedInMainWorld.d.ts` file will be generated.
|
|
* It contains all interfaces.
|
|
* `packages/preload/exposedInMainWorld.d.ts` file is required for TS is `renderer`
|
|
*
|
|
* @see https://github.com/cawa-93/dts-for-context-bridge
|
|
*/
|
|
readonly apis: { workspaceSync: (id: string) => Promise<any>; onThemeChange: (theme: string) => Promise<any>; onSidebarVisibilityChange: (visible: boolean) => Promise<any>; getGoogleOauthCode: () => Promise<{ requestInit: RequestInit; url: string; }>; updateEnv: (env: string, value: string) => void; };
|
|
readonly appInfo: { electron: boolean; isMacOS: boolean; };
|
|
}
|