I\'m just testing typescript in VisualStudio 2012 and have a problem with its type system. My html site has a canvas tag with the id \"mycanvas\". I\'m trying to draw a rect
var canvas = document.getElementById("mycanvas"); var ctx = canvas.getContext("2d");
or using dynamic lookup with the any type (no typechecking):
any
var canvas : any = document.getElementById("mycanvas"); var ctx = canvas.getContext("2d");
You can look at the different types in lib.d.ts.