Commit 0297cd9
authored
fix(rehype): fix type issues (#699)
* fix(rehype): fix type issues
The augmented hast `Data` interface conflicts with `ElementData` from
`mdast-util-to-hast`. The augmentation is redundant, so it’s removed
entirely.
The augmented hast `Properties` interface was redundant and invalid.
Instead, the value is now converted to string in the place it is used.1 parent 966e7e4 commit 0297cd9
2 files changed
+2
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | 61 | | |
71 | 62 | | |
72 | 63 | | |
| |||
123 | 114 | | |
124 | 115 | | |
125 | 116 | | |
126 | | - | |
| 117 | + | |
127 | 118 | | |
128 | 119 | | |
129 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
0 commit comments