storybook-framework-cedarjs
Version:
Storybook for CedarJS
15 lines • 878 B
TypeScript
/**
* This is heavily based on the react-docgen `displayNameHandler`
* (https://github.com/reactjs/react-docgen/blob/26c90c0dd105bf83499a83826f2a6ff7a724620d/src/handlers/displayNameHandler.ts)
* but instead defines an `actualName` property on the generated docs that is taken first from the
* component's actual name. This addresses an issue where the name that the generated docs are
* stored under is incorrectly named with the `displayName` and not the component's actual name.
*
* This is inspired by `actualNameHandler` from
* https://github.com/storybookjs/babel-plugin-react-docgen, but is modified directly from
* displayNameHandler, using the same approach as babel-plugin-react-docgen.
*/
import type { Handler } from 'react-docgen';
declare const actualNameHandler: Handler;
export default actualNameHandler;
//# sourceMappingURL=actualNameHandler.d.ts.map