Typescript external definitions to haxe converter