docs: function getTypeAttributes(element, attributes, parent) {
    let typeAttributes = [];
  
    if (element.element !== 'string' && !!parent) {
      // String is the default type. Any parentless type is probably a
      // section (# Data Structures or + Attributes) so we don't print
      // the type there either.
      typeAttributes.push(element.element);
    }
  
    if (attributes) {
      const tmp = attributes.get('typeAttributes');
      if (tmp) {
        typeAttributes = typeAttributes.concat(tmp.toValue() || []);
      }
    }
  
    return typeAttributes;
  }