diff --git a/types.ts b/types.ts index 531c59b..d972557 100644 --- a/types.ts +++ b/types.ts @@ -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 */