保誠-保戶業務員媒合平台
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