Commit 5b081d9
refactor(markdown-editor): type editor.storage.markdown via module augmentation
Adds a tiptap-markdown.d.ts that augments @tiptap/core's Storage interface,
removing the two `(editor.storage as any).markdown.getMarkdown()` casts.
The augmentation is internal to the build (not referenced from index.d.ts)
so it does not leak to consumers.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent fd3e921 commit 5b081d9
2 files changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
| 118 | + | |
120 | 119 | | |
121 | 120 | | |
122 | 121 | | |
| |||
127 | 126 | | |
128 | 127 | | |
129 | 128 | | |
130 | | - | |
131 | | - | |
| 129 | + | |
132 | 130 | | |
133 | 131 | | |
134 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments