UNPKG

572 BTypeScriptView Raw
1/**
2 * Given a config option that could evalutate to true, config, or null; return a config.
3 * e.g.
4 * `polyfill: true` returns the `config`
5 * `polyfill: {}` returns `{}`
6 *
7 * @category utils
8 */
9export declare function enableWithPropertyOrConfig(prop: any, config: boolean | {
10 [key: string]: any;
11}, merge?: boolean): any;
12/**
13 * Used for features that are enabled by default unless specified otherwise.
14 *
15 * @category utils
16 */
17export declare function overrideWithPropertyOrConfig(prop: any, config: boolean | {
18 [key: string]: any;
19}, merge?: boolean): any;