UNPKG

@kyve/core-beta

Version:

🚀 The base KYVE node implementation.

17 lines (16 loc) • 493 B
import { Node } from "../.."; import { ICompression } from "../.."; /** * compressionFactory creates the correct compression class * from the specified id. Current compression types are: * * 0 - NoCompression * 1 - Gzip * x - NoCompression (default) * * @method compressionFactory * @param {Node} this * @param {number} compressionId the id of the compression * @return {ICompression} */ export declare function compressionFactory(this: Node, compressionId: number): ICompression;