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) • 682 B
TypeScript
import { Consumer } from '..';
import { BitId } from '../../bit-id';
export declare type ComponentStatus = {
modified: boolean;
newlyCreated: boolean;
deleted: boolean;
staged: boolean;
notExist: boolean;
missingFromScope: boolean;
nested: boolean;
};
export declare type ComponentStatusResult = {
id: BitId;
status: ComponentStatus;
};
export declare class ComponentStatusLoader {
private consumer;
private _componentsStatusCache;
constructor(consumer: Consumer);
getManyComponentsStatuses(ids: BitId[]): Promise<ComponentStatusResult[]>;
getComponentStatusById(id: BitId): Promise<ComponentStatus>;
private getStatus;
}