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

24 lines (23 loc) 1.04 kB
import { BitId } from '../bit-id'; import Remote from './remote'; import ComponentObjects from '../scope/component-objects'; import Scope from '../scope/scope'; import DependencyGraph from '../scope/graph/scope-graph'; export default class Remotes extends Map<string, Remote> { constructor(remotes?: [string, Remote][]); validate(): void; resolve(scopeName: string, thisScope?: Scope | null | undefined): Promise<Remote>; isHub(scope: any): boolean; fetch(ids: BitId[], thisScope: Scope, withoutDeps?: boolean, context?: Record<string, any>): Promise<ComponentObjects[]>; latestVersions(ids: BitId[], thisScope: Scope): Promise<BitId[]>; scopeGraphs(ids: BitId[], thisScope: Scope): Promise<DependencyGraph[]>; _groupByScopeName(ids: BitId[]): { [scopeName: string]: BitId[]; }; toPlainObject(): {}; static getScopeRemote(scopeName: string): Promise<Remote>; static getGlobalRemotes(): Promise<Remotes>; static load(remotes: { [key: string]: string; }): Remotes; }