code: function toFileName(typeName) {
    var result = '';
    var wasLower = false;
    for (var i = 0; i < typeName.length; i++) {
      var c = typeName.charAt(i);
      var isLower = /[a-z]/.test(c);
      if (!isLower && wasLower) {
        result += '-';
      }
      result += c.toLowerCase();
      wasLower = isLower;
    }
    return result;
  }
docs: Converts a given type name into a TS file name