@oaklean/profiler-core
Version:
Part of the @oaklean suite. It provides all basic functions to work with the `.oak` file format. It allows parsing the `.oak` file format as well as tools for analyzing the measurement values. It also provides all necessary capabilities required for prec
13 lines (12 loc) • 497 B
TypeScript
/// <reference types="node" />
export declare abstract class BaseModel {
abstract toJSON(): object | undefined;
static fromJSON(json: string | object, // eslint-disable-line @typescript-eslint/no-unused-vars
...args: any[]): object;
static recordToJSON<T>(record: Record<string, BaseModel>): Record<string, T>;
toBuffer(...args: any[]): Buffer;
static consumeFromBuffer(buffer: Buffer, ...args: any[]): {
instance: object;
remainingBuffer: Buffer;
};
}