mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Add appPath option to @types/gm (#39348)
This commit is contained in:
committed by
Nathan Shively-Sanders
parent
d9ec9f086f
commit
750fa4b376
@@ -370,7 +370,10 @@ gm(src).toBuffer(format, (err, buffer) => {
|
||||
const imageMagick = gm.subClass({ imageMagick: true });
|
||||
readStream = imageMagick(src)
|
||||
.adjoin()
|
||||
.stream();
|
||||
.stream();
|
||||
|
||||
const customGm = gm.subClass({ appPath: '' });
|
||||
readStream = customGm(src).stream();
|
||||
|
||||
const passStream = imageMagick(readStream).stream();
|
||||
|
||||
|
||||
1
types/gm/index.d.ts
vendored
1
types/gm/index.d.ts
vendored
@@ -15,6 +15,7 @@ declare function m(width: number, height: number, color?: string): m.State;
|
||||
|
||||
declare namespace m {
|
||||
interface ClassOptions {
|
||||
appPath?: string;
|
||||
imageMagick?: boolean;
|
||||
nativeAutoOrient?: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user