mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-12 11:51:10 +08:00
Add missing parameter to gm's define method (#25567)
* Add missing value parameter to define method * Increase version number
This commit is contained in:
@@ -62,6 +62,7 @@ declare const font: string;
|
||||
declare const quality: number;
|
||||
declare const align: string;
|
||||
declare const depth: number;
|
||||
declare const defineValue: string;
|
||||
let readStream: stream.PassThrough;
|
||||
|
||||
gm(src)
|
||||
@@ -104,7 +105,7 @@ gm(src)
|
||||
.crop(width, height, x, y, usePercent)
|
||||
.cycle(factor)
|
||||
.deconstruct()
|
||||
.define()
|
||||
.define(defineValue)
|
||||
.delay(time)
|
||||
.density(width, height)
|
||||
.despeckle()
|
||||
|
||||
4
types/gm/index.d.ts
vendored
4
types/gm/index.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for gm 1.17
|
||||
// Type definitions for gm 1.18
|
||||
// Project: https://github.com/aheckmann/gm
|
||||
// Definitions by: Joel Spadin <https://github.com/ChaosinaCan>, Maarten van Vliet <https://github.com/maartenvanvliet>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -123,7 +123,7 @@ declare namespace m {
|
||||
crop(width: number, height: number, x?: number, y?: number, percent?: boolean): State;
|
||||
cycle(amount: number): State;
|
||||
deconstruct(): State;
|
||||
define(): State;
|
||||
define(value: string): State;
|
||||
delay(milliseconds: number): State;
|
||||
density(width: number, height: number): State;
|
||||
despeckle(): State;
|
||||
|
||||
Reference in New Issue
Block a user