CMS-2071 Live Edit: make code compliant with the TS 0.9 transpiler