mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[@types/gm] Add missing identify(format, callback) method. (#35511)
* [@types/gm] Add missing `identify(format, callback)` method. * Fix identation
This commit is contained in:
parent
f03ac07c6d
commit
be73d79797
@ -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
2
types/gm/index.d.ts
vendored
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user