After version 0.4.7-rc, placing type declarations inside a ts file breaks the compiler. i.e. (this is inside of a ts file) ` declare var Widget: any; `