import { type EmulatedCanvas2D } from "https://deno.land/x/canvas@v1.2.2/mod.ts";
Methods
getContext(type: "2d"): EmulatedCanvas2DContext
Returns an emulated canvas2d context if type == '2d', null otherwise.
null is not added as return type here, but '2d' is the ONLY valid context here.
getContext(type: "2d" | string): EmulatedCanvas2DContext | null