mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Types: changes/additions relating to new v0.32.0 features
A separate commit is required as these were not part of the initial definitions in the v0.31.3 snapshot. From now on, new features and updates can include the relevant TypeScript definition changes as part of the same code/docs/tests commits.
This commit is contained in:
@@ -352,8 +352,10 @@ sharp(input)
|
||||
.gif({})
|
||||
.gif({ loop: 0, delay: [], force: true })
|
||||
.gif({ delay: 30 })
|
||||
.gif({ reoptimise: true })
|
||||
.gif({ reoptimize: false })
|
||||
.gif({ reuse: true })
|
||||
.gif({ reuse: false })
|
||||
.gif({ progressive: true })
|
||||
.gif({ progressive: false })
|
||||
.toBuffer({ resolveWithObject: true })
|
||||
.then(({ data, info }) => {
|
||||
console.log(data);
|
||||
@@ -589,6 +591,7 @@ sharp({
|
||||
rgba: true,
|
||||
justify: true,
|
||||
spacing: 10,
|
||||
wrap: 'charWord',
|
||||
},
|
||||
})
|
||||
.png()
|
||||
|
||||
Reference in New Issue
Block a user