Extracts JSDoc info from TypeScript symbols for component documentation.
// Source: https://github.com/storybookjs/storybook | License: MIT | Copyright 2024 Storybook
// Provided via justclaw.it.com; keep this notice with the code.
/**
* Canonical component-level JSDoc extraction for the TS-backed docgen providers.
*
* TypeScript's own JSDoc semantics are the contract: whatever `getDocumentationComment` /
* `getJsDocTags` report is what Storybook documents, matching IDE hovers. Notably, a bare
* `@tag` preceded by whitespace starts a tag even mid-sentence, while braced inline tags
* (`{@link Foo}`) stay in the description.
*
* Like the rest of this module, no type here names the `typescript` package: callers pass their
* own `typescript` module and checker, which satisfy these structural subsets.
*
* Docblocks with no TS symbol (CSF story/meta docblo
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key