node-insim
Version:
An InSim library for NodeJS with TypeScript support
24 lines (23 loc) • 802 B
TypeScript
import type { Receivable } from '../types';
type Data = Record<string, unknown>;
type RawProperties<TThis> = {
[P in keyof Omit<TThis, keyof Struct>]: TThis[P];
};
export declare class Struct implements Receivable {
/** @ignore */
SIZE_MULTIPLIER: number;
/** All string properties in a raw format as it was received from LFS */
_raw: RawProperties<this>;
protected initialize(data?: Partial<Data>): void;
/** @ignore */
getValidPropertyNames(): string[];
/** @ignore */
getFormat(propertyFormats?: Record<string, string>): string;
/** @ignore */
getFormatSize(): number;
/** @ignore */
unpack(buffer: Uint8Array<ArrayBuffer>, propertyFormatOverrides?: Record<string, string>): this;
private parseArray;
private parseObject;
}
export {};