I have this code
var MY_OBJ = {}; MY_OBJ.test = function(){}
This will fix your problem
var MY_OBJ:any = {}; MY_OBJ.test = function(){}