@wordpress/docgen 1.34.0 → 1.35.1
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.
|
@@ -508,7 +508,7 @@ function getQualifiedObjectPatternTypeAnnotation( tag, paramType ) {
|
|
|
508
508
|
* @param {CommentTag} tag The documented parameter.
|
|
509
509
|
* @param {ASTNode} declarationToken The function the parameter is documented on.
|
|
510
510
|
* @param {number} paramIndex The parameter index.
|
|
511
|
-
* @return {string
|
|
511
|
+
* @return {string | undefined} The parameter's type annotation.
|
|
512
512
|
*/
|
|
513
513
|
function getParamTypeAnnotation( tag, declarationToken, paramIndex ) {
|
|
514
514
|
const functionToken = getFunctionToken( declarationToken );
|
|
@@ -557,7 +557,7 @@ function getParamTypeAnnotation( tag, declarationToken, paramIndex ) {
|
|
|
557
557
|
|
|
558
558
|
/**
|
|
559
559
|
* @param {ASTNode} declarationToken A function token.
|
|
560
|
-
* @return {string
|
|
560
|
+
* @return {string | undefined} The function's return type annotation.
|
|
561
561
|
*/
|
|
562
562
|
function getReturnTypeAnnotation( declarationToken ) {
|
|
563
563
|
const functionToken = getFunctionToken( declarationToken );
|
|
@@ -570,7 +570,7 @@ function getReturnTypeAnnotation( declarationToken ) {
|
|
|
570
570
|
|
|
571
571
|
/**
|
|
572
572
|
* @param {ASTNode} declarationToken
|
|
573
|
-
* @return {string
|
|
573
|
+
* @return {string | undefined} The type annotation for the variable.
|
|
574
574
|
*/
|
|
575
575
|
function getVariableTypeAnnotation( declarationToken ) {
|
|
576
576
|
let resolvedToken = declarationToken;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/docgen",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.35.1",
|
|
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",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "e9ff92d836928aba65dde94d9d193bc401a934d7"
|
|
42
42
|
}
|