MCPcopy
hub / github.com/ChatGPTNextWeb/NextChat / Window

Interface Window

app/global.d.ts:13–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11declare module "*.svg";
12
13declare interface Window {
14 __TAURI__?: {
15 writeText(text: string): Promise<void>;
16 invoke(command: string, payload?: Record<string, unknown>): Promise<any>;
17 dialog: {
18 save(options?: Record<string, unknown>): Promise<string | null>;
19 };
20 fs: {
21 writeBinaryFile(path: string, data: Uint8Array): Promise<void>;
22 writeTextFile(path: string, data: string): Promise<void>;
23 };
24 notification: {
25 requestPermission(): Promise<Permission>;
26 isPermissionGranted(): Promise<boolean>;
27 sendNotification(options: string | Options): void;
28 };
29 updater: {
30 checkUpdate(): Promise<UpdateResult>;
31 installUpdate(): Promise<void>;
32 onUpdaterEvent(
33 handler: (status: UpdateStatusResult) => void,
34 ): Promise<UnlistenFn>;
35 };
36 http: {
37 fetch<T>(
38 url: string,
39 options?: Record<string, unknown>,
40 ): Promise<Response<T>>;
41 };
42 };
43}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected