-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.d.ts
More file actions
39 lines (34 loc) · 1.05 KB
/
types.d.ts
File metadata and controls
39 lines (34 loc) · 1.05 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
37
38
39
declare const _: typeof import('lodash');
declare const React: typeof import('react');
declare const CodeSnippetsNative: {
openPath(path: string): void;
pathJoin(path: string): string;
readDir(path: string): string[];
readFile(path: string, base64?: boolean): string;
compile(code: string, extension: string): string;
writeFile(path: string, data: string, errorHandler?: (err: any) => void): void;
};
declare interface ModalEvent {
onClose: () => void;
transitionState: number;
}
declare interface Snippets {
[snippetName: string]: Snippet;
}
declare interface Snippet {
code: string;
enabled: boolean;
extension: string;
gist?: {
id: string;
name?: string;
};
}
declare interface States {
editorRef: React.MutableRefObject<any>;
forceUpdate: React.DispatchWithoutAction;
remountMonaco: React.DispatchWithoutAction;
collapsedState: [boolean, React.DispatchWithoutAction];
unsavedState: [boolean, React.Dispatch<React.SetStateAction<boolean>>];
currentSnippet: [string, React.Dispatch<React.SetStateAction<string>>, string];
}