Skip to content

Commit

Permalink
Add support for passing VFileMessage to message in types
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 17, 2022
1 parent 0f72e1d commit db8c841
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/index.js
Expand Up @@ -309,7 +309,7 @@ export class VFile {
* associates it with the file by adding it to `vfile.messages` and setting
* `message.file` to the current filepath.
*
* @param {string|Error} reason
* @param {string|Error|VFileMessage} reason
* Human readable reason for the message, uses the stack and message of the error if given.
* @param {Node|NodeLike|Position|Point} [place]
* Place where the message occurred in the file.
Expand Down Expand Up @@ -337,7 +337,7 @@ export class VFile {
* Like `VFile#message()`, but associates an informational message where
* `fatal` is set to `null`.
*
* @param {string|Error} reason
* @param {string|Error|VFileMessage} reason
* Human readable reason for the message, uses the stack and message of the error if given.
* @param {Node|NodeLike|Position|Point} [place]
* Place where the message occurred in the file.
Expand All @@ -360,7 +360,7 @@ export class VFile {
*
* > 👉 **Note**: a fatal error means that a file is no longer processable.
*
* @param {string|Error} reason
* @param {string|Error|VFileMessage} reason
* Human readable reason for the message, uses the stack and message of the error if given.
* @param {Node|NodeLike|Position|Point} [place]
* Place where the message occurred in the file.
Expand Down

0 comments on commit db8c841

Please sign in to comment.