[@types/gm] Add missing identify(format, callback) method. (#35511)

* [@types/gm] Add missing `identify(format, callback)` method.

* Fix identation
This commit is contained in:
Dimitry Kooijmans 2019-05-16 16:56:24 +02:00 committed by Nathan Shively-Sanders
parent f03ac07c6d
commit be73d79797
2 changed files with 5 additions and 0 deletions

View File

@ -66,6 +66,7 @@ declare const defineValue: string;
declare const customCommand: string;
declare const customInArguments: string[];
declare const customOutArguments: string[];
declare const customFormat: string;
let readStream: stream.PassThrough;
gm(src)
@ -309,6 +310,8 @@ gm(src)
})
.identify((err, info) => {
})
.identify(customFormat, (err, info) => {
})
.identify({ bufferStream: true }, (err, info) => {
})
.res((err, resolution) => {

2
types/gm/index.d.ts vendored
View File

@ -3,6 +3,7 @@
// Definitions by: Joel Spadin <https://github.com/ChaosinaCan>
// Maarten van Vliet <https://github.com/maartenvanvliet>
// Vaclav Mlejnsky <https://github.com/mlejva>
// Dimitry Kooijmans <https://github.com/mrcageman>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node"/>
@ -284,6 +285,7 @@ declare namespace m {
format(callback: GetterCallback<string>): State;
format(opts: GetterOptions, callback: GetterCallback<string>): State;
identify(callback: GetterCallback<ImageInfo>): State;
identify(format: string, callback: GetterCallback<string>): State;
identify(opts: GetterOptions, callback: GetterCallback<ImageInfo>): State;
res(callback: GetterCallback<string>): State;
res(opts: GetterOptions, callback: GetterCallback<string>): State;