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) • 885 B
TypeScript
/// <reference types="node" />
import { BitObject } from '.';
export default class BitRawObject {
headers: string[];
type: string;
content: Buffer;
parsedContent: any;
types: {
[key: string]: Function;
};
_ref: string;
constructor(buffer: Buffer, ref: string | null | undefined, types: {
[key: string]: Function;
} | null | undefined, type: string | null | undefined, content: Buffer | null | undefined, parsedContent: any | null | undefined);
getParsedContent(): any;
getString(pretty: boolean): string | Buffer;
set ref(ref: string);
get ref(): string;
get id(): string;
refs(): string[];
static fromDeflatedBuffer(fileContents: Buffer, ref: string | null | undefined, types: {
[key: string]: Function;
} | null | undefined): Promise<BitObject>;
toRealObject(): any;
clone(): any;
}