-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.d.ts
40 lines (35 loc) · 954 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
40
declare namespace ImportResolver {
interface AliasItem {
alias: string;
name: string;
onlyModule?: boolean;
}
interface Dictionary<T> {
[key: string]: T;
}
interface Plugin {
apply(...args: any[]): void;
}
interface ResolverOption {
alias?: AliasItem[] | Dictionary<string>;
aliasFields?: string[];
cachePredicate?: (val: Object) => boolean;
descriptionFiles?: string[];
enforceExtension?: boolean;
enforceModuleExtension?: boolean;
extensions?: string[];
fileSystem?: Object;
mainFields?: string[];
mainFiles?: string[];
moduleExtensions?: string[];
modules?: string[];
plugins?: Plugin[];
resolver?: Object;
resolveToContext?: boolean;
symlinks?: string[] | boolean;
unsafeCache?: boolean | Dictionary<any>;
useSyncFileSystemCalls?: boolean;
}
}
declare function resolver(config: ImportResolver.ResolverOption): Function
export = resolver