DefinitelyTyped/types/gzip-js/index.d.ts
2018-01-10 12:21:07 -08:00

17 lines
531 B
TypeScript

// Type definitions for gzip-js 0.3
// Project: https://github.com/beatgammit/gzip-js
// Definitions by: rhysd <https://github.com/rhysd>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
/// <reference types="node" />
export interface ZipOptions {
level?: number;
name?: string;
timestamp?: number;
}
export function zip(data: string, opts?: ZipOptions): number[];
export function unzip(data: number[] | Buffer | Uint8Array): number[];
export const DEFAULT_LEVEL: number;