I'm trying to apply the TSDoc standard for comments to a React project written in Typescript (with an eye towards generating documentation with Typedoc), but can't find any definitive answers for the preferred way to annotate a React props object. I've got this so far, where MyProps is an interface:
/**
 * Description of my function component
 * @param props - React props
 */
export default function MyComponent(props: MyProps) { ...
Is there a preferred method?
