Skip to content

Commit

Permalink
[INTERNAL] lib/processors/jsdoc: return value of a 0..1 association c…
Browse files Browse the repository at this point in the history
…an be null

Cherry picked from SAP/openui5@9999bc827
  • Loading branch information
codeworrior committed Nov 30, 2023
1 parent f956cde commit 0c2a7af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/processors/jsdoc/lib/ui5/plugin.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* experimental
*
* final
*
*
* hideconstructor
*
* interface
Expand All @@ -32,7 +32,7 @@
*
* ui5-restricted
*
*
*
*
* It furthermore listens to the following JSDoc3 events to implement additional functionality
*
Expand Down Expand Up @@ -2137,7 +2137,7 @@ function createAutoDoc(oClassInfo, classComment, doclet, node, parser, filename,
"",
newStyle && info.doc ? info.doc : "",
"",
"@returns {sap.ui.core.ID" + (info.cardinality === "0..n" ? "[]" : "") + "}",
`@returns {${info.cardinality === "0..n" ? "sap.ui.core.ID[]" : "sap.ui.core.ID|null"}}`,
info.since ? "@since " + info.since : "",
info.deprecation ? "@deprecated " + info.deprecation : "",
info.experimental ? "@experimental " + info.experimental : "",
Expand Down

0 comments on commit 0c2a7af

Please sign in to comment.