TypeScript: consolidate a few enum-like properties

This commit is contained in:
Lovell Fuller
2025-11-06 11:15:28 +00:00
parent ef86a75560
commit f7c95d1bf0
2 changed files with 11 additions and 6 deletions

View File

@@ -321,7 +321,7 @@ sharp('input.gif')
// From https://sharp.pixelplumbing.com/api-output#examples-9
// Extract raw RGB pixel data from JPEG input
sharp('input.jpg')
.raw()
.raw({ depth: 'ushort' })
.toBuffer({ resolveWithObject: true })
.then(({ data, info }) => {
console.log(data);