react-markdown : where can i find the react-markdown type source code? #1260
Answered
by
ChristianMurphy
moonkorea00
asked this question in
Q&A
-
Hey team, regarding react-markdown, i'm trying to take a look into how the types are configured in the react-markdown repository. for instance, i can find ast-to-react.d.ts under the node_modules/react-markdown directory in my project where i installed the library but where can i find it in the react-markdown repository? // where can i find the type for SpecialComponents in the source code?
export type SpecialComponents = {
code: CodeComponent | ReactMarkdownNames
h1: HeadingComponent | ReactMarkdownNames
h2: HeadingComponent | ReactMarkdownNames
h3: HeadingComponent | ReactMarkdownNames
h4: HeadingComponent | ReactMarkdownNames
h5: HeadingComponent | ReactMarkdownNames
h6: HeadingComponent | ReactMarkdownNames
li: LiComponent | ReactMarkdownNames
ol: OrderedListComponent | ReactMarkdownNames
td: TableCellComponent | ReactMarkdownNames
th: TableCellComponent | ReactMarkdownNames
tr: TableRowComponent | ReactMarkdownNames
ul: UnorderedListComponent | ReactMarkdownNames
} thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
ChristianMurphy
Nov 18, 2023
Replies: 1 comment 2 replies
-
Welcome @moonkorea00! All of the types are in the source JavaScript files, inside JSDoc comments https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
ChristianMurphy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Welcome @moonkorea00!
All of the types are in the source JavaScript files, inside JSDoc comments https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html