UNPKG

1.08 kBTypeScriptView Raw
1import unique from "./unique";
2import { CustomizeRule, CustomizeRuleString, ICustomizeOptions, Key } from "./types";
3declare function merge<Configuration extends object>(firstConfiguration: Configuration | Configuration[], ...configurations: Configuration[]): Configuration;
4declare function mergeWithCustomize<Configuration extends object>(options: ICustomizeOptions): (firstConfiguration: Configuration | Configuration[], ...configurations: Configuration[]) => Configuration;
5declare function customizeArray(rules: {
6 [s: string]: CustomizeRule | CustomizeRuleString;
7}): (a: any, b: any, key: Key) => any;
8type Rules = {
9 [s: string]: CustomizeRule | CustomizeRuleString | Rules;
10};
11declare function mergeWithRules(rules: Rules): (firstConfiguration: object | object[], ...configurations: object[]) => object;
12declare function customizeObject(rules: {
13 [s: string]: CustomizeRule | CustomizeRuleString;
14}): (a: any, b: any, key: Key) => any;
15export { customizeArray, customizeObject, CustomizeRule, merge, merge as default, mergeWithCustomize, mergeWithRules, unique, };