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 d8e1388 commit 48f0dc0Copy full SHA for 48f0dc0
lib/index.js
@@ -1,7 +1,15 @@
1
/**
2
* @typedef {import('unist').Node} UnistNode
3
* @typedef {import('unist').Parent} UnistParent
4
- * @typedef {import('unist-util-is').Test} Test
+ */
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.
13
*/
14
15
0 commit comments