react-docgen-typescript icon indicating copy to clipboard operation
react-docgen-typescript copied to clipboard

[Error] adding jsdoc @author tag throwing error `array.map is not a function`

Open flixyudh opened this issue 1 year ago • 0 comments

I just start to learn React Styleguidist for documenting my React Native component, and i'm using JSDoc for props declaration, when i integrating react-docgen-typescript for React Styleguidist, i got an error while using @author tag

Example Component
import React, { useRef, useState } from "react";
import { Animated, Easing, View, ViewProps } from "react-native";

/**
 * @author Flix
 *
 * @param {Object} props
 * @param {ReactElement} [props.renderTitle] - Custom Layout of item in data
 * @param {Boolean} [props.expanded] - Whether to show the child components or not
 * @param {Number} [props.animatedDuration] - Duration of animated transition in milliseconds
 * @param {ViewProps} [props.style] - Set custom style of root view Picker
 * @param {ViewProps} [props.titleStyle] - Set custom style of Title Section
 * @param {any} [props.easing] - Function from [Easing](https://reactnative.dev/docs/easing)
 * @param {ReactElement} [props.renderIcon] - Render Icon next to Title Section
 */
const Accordion = ({
  children,
  renderTitle,
  expanded,
  animatedDuration = 300,
  style,
  titleStyle,
  easing,
  renderIcon,
}) => {
  return (
    // my awesome render
  );
};

export default Accordion;

Error image: Screen Shot 2023-07-09 at 19 42 18

is there any way to add an Author like regular React Styleguidist?

flixyudh avatar Jul 09 '23 12:07 flixyudh