Skip to content

Commit

Permalink
Plugin output type set to HastRoot instead of defaulting to the inp…
Browse files Browse the repository at this point in the history
…ut type `MdastRoot`.
  • Loading branch information
andrejpavlovic committed Mar 31, 2023
1 parent 14fc569 commit ae5c821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -34,7 +34,7 @@ import {toHast} from 'mdast-util-to-hast'
* Options passed to `mdast-util-to-hast`.
*/
const remarkRehype =
/** @type {(import('unified').Plugin<[Processor, Options?]|[null|undefined, Options?]|[Options]|[], MdastRoot>)} */
/** @type {(import('unified').Plugin<[Processor, Options?]|[null|undefined, Options?]|[Options]|[], MdastRoot, HastRoot>)} */
(
function (destination, options) {
return destination && 'run' in destination
Expand Down

0 comments on commit ae5c821

Please sign in to comment.