TypeScript: Ensure WebpOptions minSize is boolean (#3758)

This commit is contained in:
sho-xizz
2023-08-09 21:45:10 +09:00
committed by GitHub
parent 2829e17743
commit 87562a5111
2 changed files with 2 additions and 2 deletions

View File

@@ -524,7 +524,7 @@ sharp('input.tiff').jxl({ lossless: true }).toFile('out.jxl');
sharp('input.tiff').jxl({ effort: 7 }).toFile('out.jxl');
// Support `minSize` and `mixed` webp options
sharp('input.tiff').webp({ minSize: 1000, mixed: true }).toFile('out.gif');
sharp('input.tiff').webp({ minSize: true, mixed: true }).toFile('out.gif');
// 'failOn' input param
sharp('input.tiff', { failOn: 'none' });