Skip to content

Commit

Permalink
Tests: added type tests for missing OverlayOptions properties
Browse files Browse the repository at this point in the history
  • Loading branch information
ike-gg committed Apr 1, 2024
1 parent f24dd3b commit d754f08
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/types/sharp.test-d.ts
Expand Up @@ -680,3 +680,24 @@ sharp(input)
.keepIccProfile()
.withIccProfile('filename')
.withIccProfile('filename', { attach: false });

// Added missing types for OverlayOptions
// https://github.com/lovell/sharp/pull/4048
sharp(input).composite([
{
input: 'image.gif',
animated: true,
limitInputPixels: 536805378,
density: 144,
failOn: "warning"
}
])
sharp(input).composite([
{
input: 'image.png',
animated: false,
limitInputPixels: 178935126,
density: 72,
failOn: "truncated"
}
])

0 comments on commit d754f08

Please sign in to comment.