Sha256: 0e9bafab1c4c806e295195b315955c896c7cd74b9a0d0e4860d9b560a8a9710a
Contents?: true
Size: 1.29 KB
Versions: 33
Compression:
Stored size: 1.29 KB
Contents
/// <reference types="node" /> /// <reference types="node" /> import { Readable } from 'stream'; import { JSONObject, JSONValue } from './utils'; interface MetaFileOptions { version: number; length?: number; hashes?: Record<string, string>; unrecognizedFields?: Record<string, JSONValue>; } export declare class MetaFile { readonly version: number; readonly length?: number; readonly hashes?: Record<string, string>; readonly unrecognizedFields?: Record<string, JSONValue>; constructor(opts: MetaFileOptions); equals(other: MetaFile): boolean; verify(data: Buffer): void; toJSON(): JSONObject; static fromJSON(data: JSONObject): MetaFile; } interface TargetFileOptions { length: number; path: string; hashes: Record<string, string>; unrecognizedFields?: Record<string, JSONValue>; } export declare class TargetFile { readonly length: number; readonly path: string; readonly hashes: Record<string, string>; readonly unrecognizedFields: Record<string, JSONValue>; constructor(opts: TargetFileOptions); get custom(): Record<string, unknown>; equals(other: TargetFile): boolean; verify(stream: Readable): Promise<void>; toJSON(): JSONObject; static fromJSON(path: string, data: JSONObject): TargetFile; } export {};
Version data entries
33 entries across 33 versions & 1 rubygems