Docs: overlay parameter of overlayWith is optional

This commit is contained in:
Lovell Fuller 2019-01-19 14:11:54 +00:00
parent 87ea54cc66
commit 98e90784f4

View File

@ -26,7 +26,7 @@ const is = require('./is');
* // sharpened, with metadata, 90% quality WebP image data. Phew!
* });
*
* @param {(Buffer|String)} overlay - Buffer containing image data or String containing the path to an image file.
* @param {(Buffer|String)} [overlay] - Buffer containing image data or String containing the path to an image file.
* @param {Object} [options]
* @param {String} [options.gravity='centre'] - gravity at which to place the overlay.
* @param {Number} [options.top] - the pixel offset from the top edge.