Skip to content

Commit

Permalink
Cannot build. Missing ImageEncodeOptions, VideoFrame, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
RaananW committed May 23, 2024
1 parent d820d19 commit 5985cd1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/dev/core/src/LibDeclarations/offscreenCanvas.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ interface OffscreenCanvasEventMap {
contextrestored: Event;
}

interface ImageEncodeOptions {
quality?: number;
type?: string;
}

type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;

interface OffscreenCanvas extends EventTarget {
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
Expand Down

0 comments on commit 5985cd1

Please sign in to comment.