-
- Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
🤞 phase/openPost is being triaged manuallyPost is being triaged manually
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and discussions and couldn’t find anything (or linked relevant results below)
Affected package
unist-util-visit@5.0.0
Steps to reproduce
Like syntax-tree/unist-util-visit-parents#17
import { Root } from 'mdast' import { visit } from 'unist-util-visit' export default function plugin() { return function (tree: Root) { visit(tree, ['link', 'linkReference'] as const, node => { console.log(node) // ^? }); }; }Actual behavior
Expected behavior
node should be Link | LinkReference
Runtime
No response
Package manager
No response
Operating system
No response
Build and bundle tools
No response
Metadata
Metadata
Assignees
Labels
🤞 phase/openPost is being triaged manuallyPost is being triaged manually