react-docgen-typescript
react-docgen-typescript copied to clipboard
[Error] adding jsdoc @author tag throwing error `array.map is not a function`
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:
is there any way to add an Author
like regular React Styleguidist?