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:
Steven 2025-04-04 16:53:46 -04:00 committed by GitHub
parent a9e191328f
commit 3c7dbb8fba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

2
lib/index.d.ts vendored
View File

@ -971,7 +971,7 @@ declare namespace sharp {
*
* 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):
* 'none' (least), 'truncated', 'error' or 'warning' (most), highers level imply lower levels, invalid metadata will always abort. (optional, default 'warning')