Skip to content

Commit fc9bebb

Browse files
authoredFeb 6, 2023
Change type of mime from string to string|number to fix #990 (#1182)
1 parent 21c3524 commit fc9bebb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/core/src/utils/image-bitmap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ function compositeBitmapOverBackground(Jimp, image) {
192192

193193
/**
194194
* Converts the image to a buffer
195-
* @param {string} mime the mime type of the image buffer to be created
195+
* @param {(string|number)} mime the mime type of the image buffer to be created
196196
* @param {function(Error, Jimp)} cb a Node-style function to call with the buffer as the second argument
197197
* @returns {Jimp} this for chaining of methods
198198
*/

0 commit comments

Comments
 (0)
Please sign in to comment.