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
30 lines (29 loc) • 1.02 kB
TypeScript
import { BitIds } from '../bit-id';
import { BitIdStr } from '../bit-id/bit-id';
export declare type RemovedObjectSerialized = {
removedComponentIds: BitIdStr[];
missingComponents: BitIdStr[];
removedDependencies: BitIdStr[];
dependentBits: Record<string, any>;
};
export default class RemovedObjects {
removedComponentIds: BitIds;
missingComponents: BitIds;
removedDependencies: BitIds;
dependentBits: Record<string, any>;
constructor({ removedComponentIds, missingComponents, removedDependencies, dependentBits }: {
removedComponentIds?: BitIds;
missingComponents?: BitIds;
removedDependencies?: BitIds;
dependentBits?: Record<string, any>;
});
serialize(): RemovedObjectSerialized;
static fromObjects(payload: {
removedComponentIds: string[];
missingComponents: string[];
removedDependencies: string[];
dependentBits: {
[key: string]: Record<string, any>[];
};
}): RemovedObjects;
}