From b9804ec7533f0bab72e6ae2b125a0aca8c487352 Mon Sep 17 00:00:00 2001 From: Christopher Brown Date: Wed, 10 Jun 2015 13:40:24 -0500 Subject: [PATCH] Add Sync versions for all convenience methods in Node.js's built-in 'zlib' module --- node/node.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/node/node.d.ts b/node/node.d.ts index 7043a2806..841212a16 100644 --- a/node/node.d.ts +++ b/node/node.d.ts @@ -596,12 +596,19 @@ declare module "zlib" { export function createUnzip(options?: ZlibOptions): Unzip; export function deflate(buf: Buffer, callback: (error: Error, result: any) =>void ): void; + export function deflateSync(buf: Buffer, options?: ZlibOptions): any; export function deflateRaw(buf: Buffer, callback: (error: Error, result: any) =>void ): void; + export function deflateRawSync(buf: Buffer, options?: ZlibOptions): any; export function gzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void; + export function gzipSync(buf: Buffer, options?: ZlibOptions): any; export function gunzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void; + export function gunzipSync(buf: Buffer, options?: ZlibOptions): any; export function inflate(buf: Buffer, callback: (error: Error, result: any) =>void ): void; + export function inflateSync(buf: Buffer, options?: ZlibOptions): any; export function inflateRaw(buf: Buffer, callback: (error: Error, result: any) =>void ): void; + export function inflateRawSync(buf: Buffer, options?: ZlibOptions): any; export function unzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void; + export function unzipSync(buf: Buffer, options?: ZlibOptions): any; // Constants export var Z_NO_FLUSH: number;