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

27 lines (26 loc) 916 B
/// <reference types="node" /> import BitObject from './objects/object'; import Repository from './objects/repository'; import ModelComponent from './models/model-component'; export default class ComponentObjects { component: Buffer; objects: Buffer[]; constructor(component: Buffer, objects: Buffer[]); toString(): string; getParsedComponent(): BitObject; static fromString(str: string): ComponentObjects; static manyToString(componentsAndObjects: Array<{ component: Buffer; objects: Buffer[]; }>): string; static manyFromString(str: string): ComponentObjects[]; static fromObject(object: Record<string, any>): ComponentObjects; toObjects(repo: Repository): { component: ModelComponent; objects: BitObject[]; }; toObjectsAsync(repo: Repository): Promise<{ component: ModelComponent; objects: BitObject[]; }>; }