This repository has been archived by the owner on Mar 18, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathvendor.d.ts
59 lines (52 loc) · 1.51 KB
/
vendor.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
declare module 'systemjs-builder' {
import * as Promise from 'bluebird';
let Builder: Builder.BuilderConstructor;
namespace Builder {
export interface BuilderConstructor {
new (baseURL: string, cfg: any): BuilderInstance;
new (baseURL: string): BuilderInstance;
}
export interface BuilderInstance {
bundle(expressionOrTree: string | any, opts: any): Promise<Output>;
trace(expressionOrTree: string | any, opts: any): Promise<any>;
getDepCache(tree: any): any;
getCanonicalName(fileUrl: string): string;
config(config: any, saveForReset?: boolean, ignoreBaseURL?: boolean): void;
}
export interface Output {
source: string;
sourceMap: string;
modules: string[];
}
}
export = Builder;
}
declare module 'systemjs-builder/lib/utils.js' {
let Utils: Utils.Utils;
namespace Utils {
export interface Utils {
fromFileURL(url: string): string;
toFileURL(path: string): string;
}
}
export = Utils;
}
declare module 'rev-hash' {
function revHash(buf: Buffer): string;
namespace revHash {}
export = revHash;
}
declare module 'rev-path' {
function revPath(pth: string, hash: string): string;
namespace revPath {
export function revert(pth: string, hash: string): string;
}
export = revPath;
}
declare module 'globby' {
function globby(pattern: string, opts: any): Promise<string[]>;
namespace globby {
export function sync(patterns: string[], opts: { cwd: string }): string[];
}
export = globby;
}