Skip to content

Commit 3c7dbb8

Browse files
authored
fix(types): update autoOrient type to include undefined (#4362)
This PR fixes the following error: ``` node_modules/.pnpm/[email protected]/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'. ```
1 parent a9e1913 commit 3c7dbb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ declare namespace sharp {
971971
*
972972
* Using this option will remove the EXIF `Orientation` tag, if any.
973973
*/
974-
autoOrient?: boolean;
974+
autoOrient?: boolean | undefined;
975975
/**
976976
* When to abort processing of invalid pixel data, one of (in order of sensitivity):
977977
* 'none' (least), 'truncated', 'error' or 'warning' (most), highers level imply lower levels, invalid metadata will always abort. (optional, default 'warning')

0 commit comments

Comments
 (0)