1 | import * as t from "io-ts";
|
2 | import { AutoRc } from "./types";
|
3 | import { AsyncSeriesBailHook } from "tapable";
|
4 | interface ConfigOptionError {
|
5 |
|
6 | path: string;
|
7 |
|
8 | expectedType: string;
|
9 |
|
10 | value: any;
|
11 | }
|
12 | export declare type ConfigError = string | ConfigOptionError;
|
13 |
|
14 | export declare function formatError(error: ConfigError): string;
|
15 | export declare type ValidatePluginHook = AsyncSeriesBailHook<[string, any], void | ConfigError[]>;
|
16 |
|
17 | export declare function validatePlugins(validatePlugin: ValidatePluginHook, rc: AutoRc): Promise<ConfigError[]>;
|
18 |
|
19 | export declare const validateIoConfiguration: (name: string, configDeceleration: t.Any | t.HasPropsRefinement | t.HasPropsReadonly | t.HasPropsIntersection | t.InterfaceType<any, any, any, any> | t.StrictType<any, any, any, any> | t.PartialType<any, any, any, any>) => (rc: unknown) => Promise<ConfigError[]>;
|
20 | export declare const validateAutoRc: (rc: unknown) => Promise<ConfigError[]>;
|
21 |
|
22 | export declare function validatePluginConfiguration(name: string, pluginDefinition: t.Any | t.HasProps, providedOptions: unknown): Promise<(string | {
|
23 | path: string;
|
24 |
|
25 | expectedType: string;
|
26 |
|
27 | value: any;
|
28 | })[]>;
|
29 | export {};
|
30 |
|
\ | No newline at end of file |