-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtypings-custom.d.ts
73 lines (59 loc) · 1.9 KB
/
typings-custom.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// This file is part of cbuild, copyright (c) 2016 BusFaster Ltd.
// Released under the MIT license, see LICENSE.
declare module 'systemjs-builder' {
import * as Promise from 'bluebird';
module Builder {
/** systemjs-builder diagnostics for a single input file. */
interface BuildItem {
name: string;
path: string;
metadata: { [key: string]: any };
/** List of imports. */
deps: string[];
/** Table mapping imports to their paths inside the bundle. */
depMap: { [name: string]: string };
source: string;
fresh: boolean;
timestamp: number;
configHash: string;
runtimePlugin: boolean;
pluginConfig: any;
packageConfig: any;
isPackageConfig: any;
deferredImports: any;
}
/** systemjs-builder diagnostics for the entire bundle. */
interface BuildResult {
/** Bundled output file contents. */
source: string;
sourceMap: string;
/** List of bundled files. */
modules: string[];
/** List of files intended to be imported from the bundle(?). */
entryPoints: string[];
tree: { [path: string]: BuildItem };
/** Other non-JavaScript files included in the bundle. */
assetList: any;
bundleName: string;
}
}
class Loader {
normalize(name: string, parentName: string, parentAddress: string): Promise<string>;
}
class Builder {
constructor(basePath: string, configPath: string);
loadConfig(configPath: string): Promise<void>;
bundle(sourcePath: string, targetPath: string, options: {}): Promise<Builder.BuildResult>;
bundle(sourcePath: string, options: {}): Promise<Builder.BuildResult>;
buildStatic(sourcePath: string, targetPath: string, options: {}): Promise<Builder.BuildResult>;
buildStatic(sourcePath: string, options: {}): Promise<Builder.BuildResult>;
loader: Loader;
}
export = Builder;
}
declare module 'browser-resolve' {
var resolve: (name: string, options: {
filename: string
}) => string;
export = resolve;
}