Skip to content

Commit

Permalink
fix(okidoc-md): fix issue with error while rendering return type md
Browse files Browse the repository at this point in the history
  • Loading branch information
bodia-uz committed Nov 29, 2019
1 parent c93b16c commit fca1fb5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ function getParamsFromInterface(_interface) {
function parseReturnsComment(returns, interfaces) {
const returnsType = returns.type;

if (!returnsType) {
return {
params: [returns],
};
}

if (
returnsType.type === Syntax.TypeApplication &&
(isPromiseType(returnsType.expression) ||
Expand Down

0 comments on commit fca1fb5

Please sign in to comment.