Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
54d7693
commit 23fc944
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
declare module 'zlib-sync' { | ||
export interface InflateOptions { | ||
chunkSize?: number; | ||
to?: 'string'; | ||
windowBits?: number; | ||
} | ||
|
||
export class Inflate { | ||
readonly windowBits: number; | ||
readonly result: Buffer | string | null; | ||
readonly msg: string | null; | ||
readonly err: number; | ||
readonly chunkSize: number; | ||
public constructor(options?: InflateOptions); | ||
public push(buffer: Buffer, flush?: boolean | number): void; | ||
} | ||
|
||
export const Z_NO_FLUSH: number; | ||
export const Z_PARTIAL_FLUSH: number; | ||
export const Z_SYNC_FLUSH: number; | ||
export const Z_FULL_FLUSH: number; | ||
export const Z_FINISH: number; | ||
export const Z_BLOCK: number; | ||
export const Z_TREES: number; | ||
export const Z_OK: number; | ||
export const Z_STREAM_END: number; | ||
export const Z_NEED_DICT: number; | ||
export const Z_ERRNO: number; | ||
export const Z_STREAM_ERROR: number; | ||
export const Z_DATA_ERROR: number; | ||
export const Z_MEM_ERROR: number; | ||
export const Z_BUF_ERROR: number; | ||
export const Z_VERSION_ERROR: number; | ||
export const Z_NO_COMPRESSION: number; | ||
export const Z_BEST_SPEED: number; | ||
export const Z_BEST_COMPRESSION: number; | ||
export const Z_DEFAULT_COMPRESSION: number; | ||
export const Z_FILTERED: number; | ||
export const Z_HUFFMAN_ONLY: number; | ||
export const Z_RLE: number; | ||
export const Z_FIXED: number; | ||
export const Z_DEFAULT_STRATEGY: number; | ||
export const Z_BINARY: number; | ||
export const Z_TEXT: number; | ||
export const Z_ASCII: number; | ||
export const Z_UNKNOWN: number; | ||
export const Z_DEFLATED: number; | ||
export const Z_NULL: number; | ||
|
||
export const ZLIB_VERSION: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters