mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
17 lines
531 B
TypeScript
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;
|