Doc refresh, thank you @cspotcode

This commit is contained in:
Lovell Fuller 2017-05-01 09:34:10 +01:00
parent 4d1a1694cd
commit 19dd6a997f
3 changed files with 3 additions and 2 deletions

View File

@ -77,7 +77,7 @@ An Object containing nested boolean values representing the available input and
**Examples**
```javascript
console.log(sharp.format());
console.log(sharp.format);
```
Returns **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)**

View File

@ -140,6 +140,7 @@ Use these TIFF options for output image.
- `options.force` **[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** force TIFF output, otherwise attempt to use input format (optional, default `true`)
- `options.compression` **[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** compression options: lzw, deflate, jpeg (optional, default `'jpeg'`)
- `options.predictor` **[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** compression predictor options: none, horizontal, float (optional, default `'none'`)
- `options.squash` **[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** squash 8-bit images down to 1 bit (optional, default `false`)
- Throws **[Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error)** Invalid options

View File

@ -217,7 +217,7 @@ Sharp.queue = queue;
/**
* An Object containing nested boolean values representing the available input and output formats/methods.
* @example
* console.log(sharp.format());
* console.log(sharp.format);
* @returns {Object}
*/
Sharp.format = sharp.format();