You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
572 B

/**
* Given a config option that could evalutate to true, config, or null; return a config.
* e.g.
* `polyfill: true` returns the `config`
* `polyfill: {}` returns `{}`
*
* @category utils
*/
export declare function enableWithPropertyOrConfig(prop: any, config: boolean | {
[key: string]: any;
}, merge?: boolean): any;
/**
* Used for features that are enabled by default unless specified otherwise.
*
* @category utils
*/
export declare function overrideWithPropertyOrConfig(prop: any, config: boolean | {
[key: string]: any;
}, merge?: boolean): any;