mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Docs: clarify resize reduction/enlargement options refer to scaling
Types: options can be passed as first resize parameter
This commit is contained in:
2
lib/index.d.ts
vendored
2
lib/index.d.ts
vendored
@@ -764,7 +764,7 @@ declare namespace sharp {
|
||||
* @throws {Error} Invalid parameters
|
||||
* @returns A sharp instance that can be used to chain operations
|
||||
*/
|
||||
resize(width?: number | null, height?: number | null, options?: ResizeOptions): Sharp;
|
||||
resize(widthOrOptions?: number | ResizeOptions | null, height?: number | null, options?: ResizeOptions): Sharp;
|
||||
|
||||
/**
|
||||
* Shorthand for resize(null, null, options);
|
||||
|
||||
Reference in New Issue
Block a user