We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.d.ts
1 parent 6e0fa13 commit f84ec01Copy full SHA for f84ec01
lib/index.js
@@ -1,7 +1,13 @@
1
/**
2
* @typedef {import('unist').Node} Node
3
* @typedef {import('unist').Parent} Parent
4
- * @typedef {import('unist-util-is').Test} Test
+ *
5
+ * @typedef {Exclude<import('unist-util-is').Test, undefined> | undefined} Test
6
+ * Test from `unist-util-is`.
7
8
+ * Note: we have remove and add `undefined`, because otherwise when generating
9
+ * automatic `.d.ts` files, TS tries to flatten paths from a local perspective,
10
+ * which doesn’t work when publishing on npm.
11
*/
12
13
0 commit comments