File tree 2 files changed +4
-14
lines changed
2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
- * @typedef {import('unist').Node } UnistNode
3
- * @typedef {import('unist').Parent } UnistParent
4
- */
5
-
6
- /**
7
- * @typedef {Exclude<import('unist-util-is').Test, undefined> | undefined } Test
8
- * Test from `unist-util-is`.
9
- *
10
- * Note: we have remove and add `undefined`, because otherwise when generating
11
- * automatic `.d.ts` files, TS tries to flatten paths from a local perspective,
12
- * which doesn’t work when publishing on npm.
2
+ * @import {Test} from 'unist-util-is'
3
+ * @import {Node as UnistNode, Parent as UnistParent} from 'unist'
13
4
*/
14
5
15
6
/**
Original file line number Diff line number Diff line change 1
1
/**
2
- * @typedef {import('mdast').Emphasis } Emphasis
3
- * @typedef {import('mdast').InlineCode } InlineCode
4
- * @typedef {import('unist').Node } UnistNode
2
+ * @import {Emphasis, InlineCode} from 'mdast'
3
+ * @import {Node as UnistNode} from 'unist'
5
4
*/
6
5
7
6
import assert from 'node:assert/strict'
You can’t perform that action at this time.
0 commit comments