Skip to content

Commit 8607d64

Browse files
committed
Refactor to use @imports
1 parent efbed8a commit 8607d64

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

lib/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/**
2-
* @typedef {import('unist').Node} UnistNode
3-
* @typedef {import('unist').Parent} UnistParent
4-
* @typedef {import('unist-util-visit-parents').VisitorResult} VisitorResult
2+
* @import {Node as UnistNode, Parent as UnistParent} from 'unist'
3+
* @import {VisitorResult} from 'unist-util-visit-parents'
54
*/
65

76
/**

test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @typedef {import('mdast').Root} Root
3-
* @typedef {import('unist').Node} Node
2+
* @import {Root} from 'mdast'
3+
* @import {Node} from 'unist'
44
*/
55

66
import assert from 'node:assert/strict'

0 commit comments

Comments
 (0)