attrType = ({ names } = {}) => {
  if (!names) return undefined;
  // boolean values are actually string literals "true" or "false" in config
  if (names[0] === "boolean") return ["true", "false"];
  return names.length > 1 ? names : names[0];
}
Convert jsdoc parser type to simple actual type or list of possible values
@param {{ names: string[] }} type type from jsdoc
@returns string[] | string