@wordpress/docgen 2.7.0 → 2.7.1-next.1f6eadc42.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.7.0",
|
|
3
|
+
"version": "2.7.1-next.1f6eadc42.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": "
|
|
45
|
+
"gitHead": "960a22b909c9fdbc90e7435b7ba8947b9218837a"
|
|
46
46
|
}
|