code: function objectHasType (node) {
        const typeProperty = node.properties
          .find(p =>
            utils.getStaticPropertyName(p.key) === 'type' &&
            (
              p.value.type !== 'ArrayExpression' ||
              p.value.elements.length > 0
            )
          )
        return Boolean(typeProperty)
      }
docs: ---------------------------------------------------------------------- Helpers ----------------------------------------------------------------------