-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobal.d.ts
More file actions
36 lines (30 loc) · 1.38 KB
/
Copy pathglobal.d.ts
File metadata and controls
36 lines (30 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import type { ApplicationInterface } from "./src/types/ApplicationInterface";
import type { FileInputInterface } from "./src/types/FileInputInterface";
import type { FileInterface } from "./src/types/FileInterface";
import type { FileOutputInterface } from "./src/types/FileOutputInterface";
import type { IntentInterface } from "./src/types/IntentInterface";
import type { ModuleInterface } from "./src/types/ModuleInterface";
export { };
export type ModuleInterfaceToken = `$${string}`;
export type FileInterfaceToken = `$${string}File`;
export type FileInputInterfaceToken = `$${string}FileInputStream`;
export type FileOutputInterfaceToken = `$${string}FileOutputStream`;
export type MimeType = `${string}/${string}`;
declare global {
interface Window {
webui: ApplicationInterface;
[`$intent`]: IntentInterface;
[key: ModuleInterfaceToken]: ModuleInterface;
[key: FileInterfaceToken]: FileInterface;
[key: FileInputInterfaceToken]: FileInputInterface;
[key: FileOutputInterfaceToken]: FileOutputInterface;
}
interface Document {
addMXEventListener?(type: string, handler: (data: any) => void): void
removeMXEventListener?(type: string, handler: (data: any) => void): void
}
interface HTMLElement {
addMXEventListener?(type: string, handler: (data: any) => void): void
removeMXEventListener?(type: string, handler: (data: any) => void): void
}
}