/**
* class of User
*/
class User {
/**
* constructor
* @param name c-name
*/
constructor(name: string) {
this.name = name
}
/**
* property name
*/
private name: string
/**
* setName
* @param name f-name
*/
public setName(name: string) {
this.name = name
}
}
I saw the Typescript Wiki and I can get the constructor's info, eg: returnType/parameters.
[
{
"name": "User",
"documentation": "class of User",
"type": "typeof User",
"constructors": [
{
"parameters": [
{
"name": "name",
"documentation": "c-name",
"type": "string"
}
],
"returnType": "User",
"documentation": "constructor"
}
]
}
]
but i want t get the infomation of returnType/parameters/documentation on normal function getName , how can i do this?
ps:I know the constructor has the signatures, signatures has a function getReturntype, but the normal functions has no signatures, so i can not get the info
thanks!