@wordpress/docgen 2.6.0 → 2.7.1-next.5368f64a9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -401,6 +401,10 @@ function getTypeAnnotation( typeAnnotation ) {
401
401
  * TODO: Remove the special-casing here once we're able to infer the types from TypeScript itself.
402
402
  */
403
403
  function unwrapWrappedSelectors( token ) {
404
+ if ( babelTypes.isTSDeclareFunction( token ) ) {
405
+ return token;
406
+ }
407
+
404
408
  if ( babelTypes.isFunctionDeclaration( token ) ) {
405
409
  return token;
406
410
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/docgen",
3
- "version": "2.6.0",
3
+ "version": "2.7.1-next.5368f64a9.0",
4
4
  "description": "Autogenerate public API documentation from exports and JSDoc comments.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -42,5 +42,5 @@
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
- "gitHead": "ab9564947967bb3f00343130954b9efacba6cdd7"
45
+ "gitHead": "24934a1f5251bbee15045d1fd953d9c5650317cd"
46
46
  }