syntax-tree / mdast-util-to-markdown

Compare c47743b ... +0 ... 651ce97

Showing 1 of 1 files from the diff.

@@ -41,9 +41,7 @@
Loading
41 41
  /** @type {Handle} */
42 42
  context.handle = zwitch('type', {
43 43
    invalid,
44 -
    // @ts-expect-error: hush.
45 44
    unknown,
46 -
    // @ts-expect-error: hush.
47 45
    handlers: context.handlers
48 46
  })
49 47
@@ -78,16 +76,19 @@
Loading
78 76
/**
79 77
 * @type {Handle}
80 78
 * @param {unknown} value
79 +
 * @returns {never}
81 80
 */
82 81
function invalid(value) {
83 82
  throw new Error('Cannot handle value `' + value + '`, expected node')
84 83
}
85 84
86 85
/**
87 86
 * @type {Handle}
88 -
 * @param {Node} node
87 +
 * @param {unknown} node
88 +
 * @returns {never}
89 89
 */
90 90
function unknown(node) {
91 +
  // @ts-expect-error: fine.
91 92
  throw new Error('Cannot handle unknown node `' + node.type + '`')
92 93
}
93 94

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
lib 100.00%
index.js 100.00%
Project Totals (47 files) 100.00%
Loading