Type Alias BGContext

BGContext: Omit<
    CanvasRenderingContext2D,
    "setLineDash"
    | "ellipse"
    | "createLinearGradient",
> & {
    clipRect: (x: number, y: number, w: number, h: number) => void;
    createLinearGradient: (
        ...params: Parameters<CanvasRenderingContext2D["createLinearGradient"]>,
    ) =>
        | ReturnType<CanvasRenderingContext2D["createLinearGradient"]>
        | undefined
        | null
        | false;
    ellipse?: CanvasRenderingContext2D["ellipse"];
    line: (x1: number, y1: number, x2: number, y2: number) => void;
    setFont: (font: string) => void;
    setLineDash?: CanvasRenderingContext2D["setLineDash"];
}

CanvasRenderingContext2D with custom functions