|
2 | 2 | * @typedef {import('unist').Node} Node |
3 | 3 | * @typedef {import('unist').Parent} Parent |
4 | 4 | * @typedef {import('unist-util-is').Test} Test |
5 | | - * @typedef {import('./complex-types').Action} Action |
6 | | - * @typedef {import('./complex-types').Index} Index |
7 | | - * @typedef {import('./complex-types').ActionTuple} ActionTuple |
8 | | - * @typedef {import('./complex-types').VisitorResult} VisitorResult |
9 | | - * @typedef {import('./complex-types').Visitor} Visitor |
| 5 | + * @typedef {import('./complex-types.js').Action} Action |
| 6 | + * @typedef {import('./complex-types.js').Index} Index |
| 7 | + * @typedef {import('./complex-types.js').ActionTuple} ActionTuple |
| 8 | + * @typedef {import('./complex-types.js').VisitorResult} VisitorResult |
| 9 | + * @typedef {import('./complex-types.js').Visitor} Visitor |
10 | 10 | */ |
11 | 11 |
|
12 | 12 | import {convert} from 'unist-util-is' |
@@ -40,15 +40,15 @@ export const EXIT = false |
40 | 40 | export const visitParents = |
41 | 41 | /** |
42 | 42 | * @type {( |
43 | | - * (<Tree extends Node, Check extends Test>(tree: Tree, test: Check, visitor: import('./complex-types').BuildVisitor<Tree, Check>, reverse?: boolean) => void) & |
44 | | - * (<Tree extends Node>(tree: Tree, visitor: import('./complex-types').BuildVisitor<Tree>, reverse?: boolean) => void) |
| 43 | + * (<Tree extends Node, Check extends Test>(tree: Tree, test: Check, visitor: import('./complex-types.js').BuildVisitor<Tree, Check>, reverse?: boolean) => void) & |
| 44 | + * (<Tree extends Node>(tree: Tree, visitor: import('./complex-types.js').BuildVisitor<Tree>, reverse?: boolean) => void) |
45 | 45 | * )} |
46 | 46 | */ |
47 | 47 | ( |
48 | 48 | /** |
49 | 49 | * @param {Node} tree |
50 | 50 | * @param {Test} test |
51 | | - * @param {import('./complex-types').Visitor<Node>} visitor |
| 51 | + * @param {import('./complex-types.js').Visitor<Node>} visitor |
52 | 52 | * @param {boolean} [reverse=false] |
53 | 53 | */ |
54 | 54 | function (tree, test, visitor, reverse) { |
|
0 commit comments