-
Notifications
You must be signed in to change notification settings - Fork 17
/
index.d.ts
39 lines (34 loc) · 919 Bytes
/
index.d.ts
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
type StartDevServerOptions = {
directory: string;
port?: number;
openInBrowser?: boolean;
onSuccess?: (server: any) => void;
onError?: (err: Error) => void;
};
type CreateProjectOptions = {
projectName: string;
templateId: string;
startServer?: boolean;
port?: number;
onSuccess?: () => void;
onError?: (err: Error) => void;
};
type ExportSandboxOptions = {
directory: string;
openInBrowser?: boolean;
onSuccess?: (sandboxId: string) => void;
onError?: (err: Error) => void;
};
declare module 'blazepack' {
namespace commands {
function startDevServer(options: StartDevServerOptions): void;
function createProject(options: CreateProjectOptions): void;
function exportSandbox(options: ExportSandboxOptions): void;
}
namespace utils {
function detectTemplate(directory: string): string;
}
namespace constants {
var TEMPLATES: Record<string, string>;
}
}