TypeScriptでChartjsをしていたのだけど、下記のソースで Property 'getContext' does not exist on type 'HTMLElement'.
と怒られてしまった。
修正前.ts
var ctx = <HTMLCanvasElement> document.getElementById('lineChartCanvas').getContext("2d");
下記に修正することで解決
修正後.ts
var canvas = <HTMLCanvasElement> document.getElementById('lineChartCanvas');
var ctx = canvas.getContext("2d");
[参考url]
http://stackoverflow.com/questions/13669404/typescript-problems-with-type-system