1 | export declare type ExtensionName = ".cjs" | ".js" | ".json" | ".yaml" | ".yml";
|
2 | export declare type RequiredOption = "packageJSON" | "defaultExtension" | "cwd";
|
3 | export declare type Loader = <R extends {}>(fileName: string, supperes: boolean) => R;
|
4 | export declare type ExtensionLoaderMap = Record<ExtensionName, Loader>;
|
5 | export declare type PossibleUndefined<T> = T | undefined;
|
6 | export interface rcConfigResult<R extends Record<string, unknown>> {
|
7 | config: R;
|
8 | filePath: string;
|
9 | }
|
10 | export interface rcConfigLoaderOption {
|
11 |
|
12 | packageJSON?: boolean | {
|
13 | fieldName: string;
|
14 | };
|
15 |
|
16 | configFileName?: string;
|
17 |
|
18 | defaultExtension?: ExtensionName | ExtensionName[];
|
19 |
|
20 | cwd?: string;
|
21 | }
|