1 | declare module 'postcss-import-resolver' {
|
2 | interface AliasItem {
|
3 | alias: string;
|
4 | name: string;
|
5 | onlyModule?: boolean;
|
6 | }
|
7 |
|
8 | interface Dictionary<T> {
|
9 | [key: string]: T;
|
10 | }
|
11 |
|
12 | interface Plugin {
|
13 | apply(...args: any[]): void;
|
14 | }
|
15 |
|
16 | interface ResolverOption {
|
17 | alias?: AliasItem[] | Dictionary<string>;
|
18 | aliasFields?: string[];
|
19 | cachePredicate?: (val: Object) => boolean;
|
20 | descriptionFiles?: string[];
|
21 | enforceExtension?: boolean;
|
22 | enforceModuleExtension?: boolean;
|
23 | extensions?: string[];
|
24 | fileSystem?: Object;
|
25 | mainFields?: string[];
|
26 | mainFiles?: string[];
|
27 | moduleExtensions?: string[];
|
28 | modules?: string[];
|
29 | plugins?: Plugin[];
|
30 | resolver?: Object;
|
31 | resolveToContext?: boolean;
|
32 | symlinks?: string[] | boolean;
|
33 | unsafeCache?: boolean | Dictionary<any>;
|
34 | useSyncFileSystemCalls?: boolean;
|
35 | }
|
36 |
|
37 | export default function resolver(config: ResolverOption): Function
|
38 | }
|
39 |
|
\ | No newline at end of file |