diff --git a/code/examples/cra-ts-kitchen-sink/src/stories/docgen-tests/jsdoc/jsdoc-perfo.js b/code/examples/cra-ts-kitchen-sink/src/stories/docgen-tests/jsdoc/jsdoc-perfo.js deleted file mode 100644 index 78665fe6c1c..00000000000 --- a/code/examples/cra-ts-kitchen-sink/src/stories/docgen-tests/jsdoc/jsdoc-perfo.js +++ /dev/null @@ -1,472 +0,0 @@ -/* eslint-disable react/no-unused-prop-types */ -/* eslint-disable react/require-default-props */ -/* eslint-disable react/prop-types */ -import React from 'react'; -import PropTypes from 'prop-types'; - -export const ButtonTooManyProps = ({ onClick, children }) => ( - -); -ButtonTooManyProps.propTypes = { - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick1: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick2: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick3: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick4: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick5: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick6: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick7: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick8: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick9: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick10: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick11: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick12: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick13: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick14: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick15: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick16: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick17: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick18: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick19: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick20: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick21: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick22: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick23: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick24: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick25: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick26: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick27: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick28: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick29: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick30: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick31: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick32: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick33: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick34: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick35: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick36: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick37: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick38: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick39: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick40: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick41: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick42: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick43: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick44: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick45: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick46: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick47: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick48: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick49: PropTypes.func, - /** - * onClick description - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {SyntheticEvent} event1 - React's original SyntheticEvent. - * @param {SyntheticEvent} event2 - React's original SyntheticEvent. - * @param {SyntheticEvent} event3 - React's original SyntheticEvent. - * @returns {void} - */ - onClick50: PropTypes.func, -}; diff --git a/code/examples/cra-ts-kitchen-sink/src/stories/docgen-tests/jsdoc/jsdoc-perfo.stories.mdx b/code/examples/cra-ts-kitchen-sink/src/stories/docgen-tests/jsdoc/jsdoc-perfo.stories.mdx deleted file mode 100644 index 730fdaa6140..00000000000 --- a/code/examples/cra-ts-kitchen-sink/src/stories/docgen-tests/jsdoc/jsdoc-perfo.stories.mdx +++ /dev/null @@ -1,10 +0,0 @@ -import { Meta, ArgsTable } from '@storybook/addon-docs'; -import { ButtonTooManyProps } from './jsdoc-perfo'; - - - -## Render 150 props with JSDoc tags - - - - diff --git a/code/examples/cra-ts-kitchen-sink/src/stories/docgen-tests/jsdoc/jsdoc.stories.mdx b/code/examples/cra-ts-kitchen-sink/src/stories/docgen-tests/jsdoc/jsdoc.stories.mdx deleted file mode 100644 index 3faf592adce..00000000000 --- a/code/examples/cra-ts-kitchen-sink/src/stories/docgen-tests/jsdoc/jsdoc.stories.mdx +++ /dev/null @@ -1,9 +0,0 @@ -import { Meta, ArgsTable } from '@storybook/addon-docs'; -import { JsDocProps, FailingJsDocProps } from './jsdoc'; -import { TypeScriptProps } from './jsdoc-ts'; - - - - - - diff --git a/code/examples/cra-ts-kitchen-sink/src/stories/docgen-tests/jsdoc/jsdoc.js b/code/renderers/react/template/stories/__testfixtures__/jsdoc/input.jsx similarity index 92% rename from code/examples/cra-ts-kitchen-sink/src/stories/docgen-tests/jsdoc/jsdoc.js rename to code/renderers/react/template/stories/__testfixtures__/jsdoc/input.jsx index 322a1dfe5eb..f9357c93860 100644 --- a/code/examples/cra-ts-kitchen-sink/src/stories/docgen-tests/jsdoc/jsdoc.js +++ b/code/renderers/react/template/stories/__testfixtures__/jsdoc/input.jsx @@ -1,9 +1,7 @@ -/* eslint-disable react/no-unused-prop-types */ -/* eslint-disable react/require-default-props */ import React from 'react'; import PropTypes from 'prop-types'; -export const JsDocProps = () =>
JSDoc with PropTypes!
; +const JsDocProps = () =>
JSDoc with PropTypes!
; JsDocProps.propTypes = { /** * should not be visible since it's ignored. @@ -229,11 +227,4 @@ JsDocProps.propTypes = { case43: PropTypes.func, }; -export const FailingJsDocProps = () =>
Failing JSDoc Props!
; -FailingJsDocProps.propTypes = { - /** - * autofix event. - * @param event. - */ - case: PropTypes.func, -}; +export const component = JsDocProps; diff --git a/code/examples/cra-ts-kitchen-sink/src/stories/docgen-tests/jsdoc/jsdoc-ts.tsx b/code/renderers/react/template/stories/__testfixtures__/ts-jsdoc/input.tsx similarity index 81% rename from code/examples/cra-ts-kitchen-sink/src/stories/docgen-tests/jsdoc/jsdoc-ts.tsx rename to code/renderers/react/template/stories/__testfixtures__/ts-jsdoc/input.tsx index 5045d28cd75..a1a623b04f0 100644 --- a/code/examples/cra-ts-kitchen-sink/src/stories/docgen-tests/jsdoc/jsdoc-ts.tsx +++ b/code/renderers/react/template/stories/__testfixtures__/ts-jsdoc/input.tsx @@ -17,8 +17,10 @@ interface TSProps { /** * Button functional component (React.FC) */ -export const TypeScriptProps: FC = ({ case1, case2 }) => ( +const TypeScriptProps: FC = ({ case1, case2 }) => ( ); + +export const component = TypeScriptProps; diff --git a/code/renderers/react/template/stories/js-argtypes.stories.jsx b/code/renderers/react/template/stories/js-argtypes.stories.jsx index a8a45f5d056..f1f098b8d3e 100644 --- a/code/renderers/react/template/stories/js-argtypes.stories.jsx +++ b/code/renderers/react/template/stories/js-argtypes.stories.jsx @@ -18,6 +18,7 @@ import { component as JsPropTypesOneofComponent } from './__testfixtures__/8140- import { component as JsHocComponent } from './__testfixtures__/9023-js-hoc/input.jsx'; import { component as JsReactMemoComponent } from './__testfixtures__/9586-js-react-memo/input.jsx'; import { component as JsStaticPropTypesComponent } from './__testfixtures__/8428-js-static-prop-types/input.jsx'; +import { component as JsdocComponent } from './__testfixtures__/jsdoc/input.jsx'; // Detect if we are running in vite in a hacky way for now // eslint-disable-next-line camelcase @@ -84,3 +85,5 @@ export const JsHoc = { parameters: { component: JsHocComponent } }; export const JsReactMemo = { parameters: { component: JsReactMemoComponent } }; export const JsStaticPropTypes = { parameters: { component: JsStaticPropTypesComponent } }; + +export const Jsdoc = { parameters: { component: JsdocComponent } }; diff --git a/code/renderers/react/template/stories/ts-argtypes.stories.tsx b/code/renderers/react/template/stories/ts-argtypes.stories.tsx index 3172a0794aa..f7b6457573a 100644 --- a/code/renderers/react/template/stories/ts-argtypes.stories.tsx +++ b/code/renderers/react/template/stories/ts-argtypes.stories.tsx @@ -21,6 +21,7 @@ import { component as TsForwardRefComponent } from './__testfixtures__/8894-9511 import { component as TsTypePropsComponent } from './__testfixtures__/9465-ts-type-props/input'; import { component as TsExtendPropsComponent } from './__testfixtures__/9764-ts-extend-props/input'; import { component as TsComponentPropsComponent } from './__testfixtures__/9922-ts-component-props/input'; +import { component as TsJsdocComponent } from './__testfixtures__/ts-jsdoc/input'; export default { component: {}, @@ -73,3 +74,5 @@ export const TsTypeProps = { parameters: { component: TsTypePropsComponent } }; export const TsExtendProps = { parameters: { component: TsExtendPropsComponent } }; export const TsComponentProps = { parameters: { component: TsComponentPropsComponent } }; + +export const TsJsdoc = { parameters: { component: TsJsdocComponent } };