Commit 187d4d3
committed
chore: drop now-unused @ts-expect-error directives in serializeData
Problem: tsc --build fails on upstream/main with three TS2578 "Unused
'@ts-expect-error' directive" errors at lib/index.js:233/235/237.
markdown-table's types now accept null for the align-delimiters,
padding, and string-length options, so the suppressions are obsolete
and the type checker now flags them.
Goal: restore tsc --build to a clean pass so the package's own test
suite runs end-to-end without an unrelated build failure.
Changes:
- lib/index.js: remove three @ts-expect-error comments around the
alignDelimiters / padding / stringLength fields passed to
markdownTable in serializeData.
Notes: drift from a markdown-table type update; verified npm test now
passes (build + format + 100% coverage + 32 of 32 tests dev and prod).1 parent abf8c36 commit 187d4d3
1 file changed
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | 233 | | |
235 | | - | |
236 | 234 | | |
237 | | - | |
238 | 235 | | |
239 | 236 | | |
240 | 237 | | |
| |||
0 commit comments