Skip to content

Commit

Permalink
Fix typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed May 10, 2021
1 parent 742fd1e commit 37fce49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @typedef {import('unist').Literal} Literal
* @typedef {import('unist').Position} Position
* @typedef {import('unist').Point} Point
* @typedef {Node & {children: never, value: never}} Void
* @typedef {Node & {children: never, value: never}} _Void
*/

import nodeAssert from 'assert'
Expand Down Expand Up @@ -53,7 +53,7 @@ export function literal(node, parent) {
*
* @param {unknown} [node]
* @param {Parent} [parent]
* @returns {asserts node is Void}
* @returns {asserts node is _Void}
*/
export function _void(node, parent) {
return wrap(assertVoid)(node, parent)
Expand Down Expand Up @@ -231,7 +231,7 @@ function assertLiteral(node) {
* Assert `node` is a unist node, but neither parent nor literal.
*
* @param {Node} node
* @returns {asserts node is Void}
* @returns {asserts node is _Void}
*/
function assertVoid(node) {
assertNode(node)
Expand Down

0 comments on commit 37fce49

Please sign in to comment.