Docs: clarify resize reduction/enlargement options refer to scaling

Types: options can be passed as first resize parameter
This commit is contained in:
Lovell Fuller
2023-03-24 15:19:21 +00:00
parent 98ed237734
commit 148760fe55
3 changed files with 30 additions and 30 deletions

2
lib/index.d.ts vendored
View File

@@ -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);