Skip to content

Commit

Permalink
feat: accept mime type for toBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
DjDeveloperr committed Jun 24, 2021
1 parent d60d90d commit 020f46f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ export interface EmulatedCanvas2D {
/**
* Returns Buffer containing Image data.
*/
toBuffer(): Uint8Array;
toBuffer(mimeType?: 'image/png' | 'image/jpeg'): Uint8Array;
}

/** Part of the Canvas2D emulation code */
Expand Down

0 comments on commit 020f46f

Please sign in to comment.