mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
fix(types): update autoOrient
type to include undefined (#4362)
This PR fixes the following error: ``` node_modules/.pnpm/sharp@0.34.0/node_modules/sharp/lib/index.d.ts(1590,15): error TS2430: Interface 'OverlayOptions' incorrectly extends interface 'SharpOptions'. Types of property 'autoOrient' are incompatible. Type 'boolean | undefined' is not assignable to type 'boolean'. Type 'undefined' is not assignable to type 'boolean'. ```
This commit is contained in:
parent
a9e191328f
commit
3c7dbb8fba
2
lib/index.d.ts
vendored
2
lib/index.d.ts
vendored
@ -971,7 +971,7 @@ declare namespace sharp {
|
|||||||
*
|
*
|
||||||
* Using this option will remove the EXIF `Orientation` tag, if any.
|
* Using this option will remove the EXIF `Orientation` tag, if any.
|
||||||
*/
|
*/
|
||||||
autoOrient?: boolean;
|
autoOrient?: boolean | undefined;
|
||||||
/**
|
/**
|
||||||
* When to abort processing of invalid pixel data, one of (in order of sensitivity):
|
* When to abort processing of invalid pixel data, one of (in order of sensitivity):
|
||||||
* 'none' (least), 'truncated', 'error' or 'warning' (most), highers level imply lower levels, invalid metadata will always abort. (optional, default 'warning')
|
* 'none' (least), 'truncated', 'error' or 'warning' (most), highers level imply lower levels, invalid metadata will always abort. (optional, default 'warning')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user