UNPKG

bit-bin

Version:

<a href="https://opensource.org/licenses/Apache-2.0"><img alt="apache" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a> <a href="https://github.com/teambit/bit/blob/master/CONTRIBUTING.md"><img alt="prs" src="https://img.shields.io/b

18 lines (17 loc) 708 B
import ConsumerOverrides, { ConsumerOverridesOfComponent } from '../../consumer/config/consumer-overrides'; import { BitId } from '../../bit-id'; import { Config } from '../config'; export declare type Patterns = { [pattern: string]: Record<string, any>; }; export declare class Variants { private patterns; private hostConfig; componentsCache: Map<string, ConsumerOverridesOfComponent | undefined>; _loadedLegacy: ConsumerOverrides; constructor(patterns: Patterns, hostConfig: Config); raw(): Patterns; legacy(): ConsumerOverrides; legacyById(componentId: BitId): ConsumerOverridesOfComponent | undefined; byId(componentId: BitId): Record<string, any> | undefined; }