UNPKG

huffman-ts

Version:

Huffman ts is an implementation of Huffman Algorithm in Typescript. It provides full compatibility with Huffman algorithm reference.

5 lines (4 loc) 332 B
export declare type FrequencyItem = [string | [FrequencyItem, FrequencyItem], number]; export declare type FrequencyTable = FrequencyItem[]; export declare type CompressedFrequencyItem = [string | CompressedFrequencyItem, string | CompressedFrequencyItem]; export declare type HuffmanEncoded = CompressedFrequencyItem | string;