Skip to content

Commit

Permalink
Fix type of optional option
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 8, 2023
1 parent abb5a9a commit 3c42476
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
* File used to add positional info to nodes (optional).
*
* If given, the file should represent the original HTML source.
* @property {boolean} [verbose=false]
* @property {boolean | null | undefined} [verbose=false]
* Whether to add extra positional info about starting tags, closing tags,
* and attributes to elements (default: `false`).
*
Expand Down Expand Up @@ -91,7 +91,7 @@ export function fromParse5(tree, options) {
file: settings.file || undefined,
location: false,
schema: settings.space === 'svg' ? svg : html,
verbose: settings.verbose
verbose: settings.verbose || false
},
tree
)
Expand Down

0 comments on commit 3c42476

Please sign in to comment.