|
58 | 58 | * @typedef {ComponentPropsWithoutRef<'h1'> & ReactMarkdownProps & {level: number}} HeadingProps
|
59 | 59 | * @typedef {ComponentPropsWithoutRef<'li'> & ReactMarkdownProps & {checked: boolean|null, index: number, ordered: boolean}} LiProps
|
60 | 60 | * @typedef {ComponentPropsWithoutRef<'ol'> & ReactMarkdownProps & {depth: number, ordered: true}} OrderedListProps
|
61 |
| - * @typedef {ComponentPropsWithoutRef<'table'> & ReactMarkdownProps & {style?: Record<string, unknown>, isHeader: boolean}} TableCellProps |
| 61 | + * @typedef {ComponentPropsWithoutRef<'td'> & ReactMarkdownProps & {style?: Record<string, unknown>, isHeader: false}} TableDataCellProps |
| 62 | + * @typedef {ComponentPropsWithoutRef<'th'> & ReactMarkdownProps & {style?: Record<string, unknown>, isHeader: true}} TableHeaderCellProps |
62 | 63 | * @typedef {ComponentPropsWithoutRef<'tr'> & ReactMarkdownProps & {isHeader: boolean}} TableRowProps
|
63 | 64 | * @typedef {ComponentPropsWithoutRef<'ul'> & ReactMarkdownProps & {depth: number, ordered: false}} UnorderedListProps
|
64 | 65 | *
|
65 | 66 | * @typedef {ComponentType<CodeProps>} CodeComponent
|
66 | 67 | * @typedef {ComponentType<HeadingProps>} HeadingComponent
|
67 | 68 | * @typedef {ComponentType<LiProps>} LiComponent
|
68 | 69 | * @typedef {ComponentType<OrderedListProps>} OrderedListComponent
|
69 |
| - * @typedef {ComponentType<TableCellProps>} TableCellComponent |
| 70 | + * @typedef {ComponentType<TableDataCellProps>} TableDataCellComponent |
| 71 | + * @typedef {ComponentType<TableHeaderCellProps>} TableHeaderCellComponent |
70 | 72 | * @typedef {ComponentType<TableRowProps>} TableRowComponent
|
71 | 73 | * @typedef {ComponentType<UnorderedListProps>} UnorderedListComponent
|
72 | 74 | *
|
|
80 | 82 | * @property {HeadingComponent|ReactMarkdownNames} h6
|
81 | 83 | * @property {LiComponent|ReactMarkdownNames} li
|
82 | 84 | * @property {OrderedListComponent|ReactMarkdownNames} ol
|
83 |
| - * @property {TableCellComponent|ReactMarkdownNames} td |
84 |
| - * @property {TableCellComponent|ReactMarkdownNames} th |
| 85 | + * @property {TableDataCellComponent|ReactMarkdownNames} td |
| 86 | + * @property {TableHeaderCellComponent|ReactMarkdownNames} th |
85 | 87 | * @property {TableRowComponent|ReactMarkdownNames} tr
|
86 | 88 | * @property {UnorderedListComponent|ReactMarkdownNames} ul
|
87 | 89 | *
|
|
0 commit comments