import { type EmulatedCanvas2D } from "https://deno.land/x/canvas@v.1.0.5/types.ts";
Methods
getContext(type: "2d" | string): 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.