Skip to content
This repository has been archived by the owner on May 30, 2020. It is now read-only.

'Type' column is empty #87

Open
plwade opened this issue May 25, 2016 · 4 comments
Open

'Type' column is empty #87

plwade opened this issue May 25, 2016 · 4 comments

Comments

@plwade
Copy link

plwade commented May 25, 2016

Controller parameter Type is always empty.
I have attached a screenshot and controller code.

Any help appreciated.
jsDocTest.controller.txt
capture

@molikmiah
Copy link

I am having the same issue, i have also tried to use @type and adding the {type} before and after the variable/object name with no success.

Even if i copy the code in the example controller it doesn't include type. Could this be an issue with the JSDoc version?

@plwade
Copy link
Author

plwade commented May 26, 2016

The example code does not put the Type before the name https://github.com/allenhwkim/angular-jsdoc/blob/master/sample-codes/ngmap/map-controller.js

[https://avatars0.githubusercontent.com/u/1437734?v=3&s=400]https://github.com/allenhwkim/angular-jsdoc/blob/master/sample-codes/ngmap/map-controller.js

allenhwkim/angular-jsdochttps://github.com/allenhwkim/angular-jsdoc/blob/master/sample-codes/ngmap/map-controller.js
github.com
angular-jsdoc - AngularJS Template/Plugin for JSDoc 3.

eg. * @param GeoCoder {service} Google GeoCoder wrapper

Please could you provide some example code re. {type} before the name

Kind Regards,

Paul


From: Florian Zemke notifications@github.com
Sent: 25 May 2016 20:27
To: allenhwkim/angular-jsdoc
Cc: plwade; Author
Subject: Re: [allenhwkim/angular-jsdoc] 'Type' column is empty (#87)

Type has to be first before the param name.

@molikmiahhttps://github.com/molikmiah, Could you please provide example code?

You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHubhttps://github.com//issues/87#issuecomment-221696805

yupkey pushed a commit to yupkey/angular-jsdoc that referenced this issue Oct 18, 2016
@jukebox017
Copy link

jukebox017 commented Mar 25, 2017

In my case, I am using docdash as my template, and the type column was empty. The type was being parsed correctly from @param in ngdoc.js. However, it was stored in the property "typeDefinition" and "typeDefinitionUrl", and docdash was expecting to find a property of "type", with an additional property "names" within "type".

In order to make the types appear for now, I added the following to ngdoc.js near the bottom of parseParamTypes:

result.type = {}
result.type.names = [result.typeDefinition];

@wayrex
Copy link

wayrex commented Feb 15, 2018

Any news on that issue?

allenhwkim added a commit that referenced this issue Aug 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants