Try using setAttribute. TypeScript does not have the style property on Element.
element.setAttribute("style", "color:red; border: 1px solid blue;");
Some related discussion in this GitHub issue:
https://github.com/Microsoft/TypeScript/issues/3263