From e821f19879433fe5d9f7e9e5b8d92758591f66cf Mon Sep 17 00:00:00 2001 From: Timothy Soehnlin Date: Mon, 28 Mar 2016 09:25:50 -0500 Subject: [PATCH 1/2] Update gm.d.ts Supporting alternate constructors listed at https://github.com/aheckmann/gm#constructor --- gm/gm.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gm/gm.d.ts b/gm/gm.d.ts index d7272397e..9f7d027f1 100644 --- a/gm/gm.d.ts +++ b/gm/gm.d.ts @@ -9,6 +9,9 @@ declare module "gm" { import stream = require('stream'); function m(image: string): m.State; + function m(stream:NodeJS.ReadableStream, image?: string): m.State; + function m(stream:Buffer, image?: string): m.State; + function m(width:number, height:number, color?:string): m.State; namespace m { export interface ClassOptions { From 6d218806c8c8e8785d497eb91616ca4140b23f74 Mon Sep 17 00:00:00 2001 From: Timothy Soehnlin Date: Mon, 28 Mar 2016 09:28:02 -0500 Subject: [PATCH 2/2] Update gm.d.ts Renaming stream to buffer for consistency --- gm/gm.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gm/gm.d.ts b/gm/gm.d.ts index 9f7d027f1..964decdee 100644 --- a/gm/gm.d.ts +++ b/gm/gm.d.ts @@ -10,7 +10,7 @@ declare module "gm" { function m(image: string): m.State; function m(stream:NodeJS.ReadableStream, image?: string): m.State; - function m(stream:Buffer, image?: string): m.State; + function m(buffer:Buffer, image?: string): m.State; function m(width:number, height:number, color?:string): m.State; namespace m {