Skip to content

Commit 3c42476

Browse files
committed
Fix type of optional option
1 parent abb5a9a commit 3c42476

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* File used to add positional info to nodes (optional).
4242
*
4343
* If given, the file should represent the original HTML source.
44-
* @property {boolean} [verbose=false]
44+
* @property {boolean | null | undefined} [verbose=false]
4545
* Whether to add extra positional info about starting tags, closing tags,
4646
* and attributes to elements (default: `false`).
4747
*
@@ -91,7 +91,7 @@ export function fromParse5(tree, options) {
9191
file: settings.file || undefined,
9292
location: false,
9393
schema: settings.space === 'svg' ? svg : html,
94-
verbose: settings.verbose
94+
verbose: settings.verbose || false
9595
},
9696
tree
9797
)

0 commit comments

Comments
 (0)