code: function parseCustomTypeOption(opt, value, errors) {
          var key = trimString((value || "")).toLowerCase();
          var map = opt.type;
          if (key in map) {
              return map[key];
          }
          else {
              errors.push(createCompilerDiagnosticForInvalidCustomType(opt));
          }
      }
docs: /* @internal