async convertToJS(fileInfo) {
    let rendered = await fileInfo.render();

    fileInfo.rendered = await this.removeTypes(path.extname(fileInfo.displayPath), rendered);
    fileInfo.displayPath = replaceTypeScriptExtension(fileInfo.displayPath);
    fileInfo.outputPath = replaceTypeScriptExtension(fileInfo.outputPath);

    return fileInfo;
  }
@private
    @method convertToJS
    @param {FileInfo} fileInfo
    @return {Promise}