Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically setting type of @param based on value of another @param #221

Open
h2plucifer opened this issue Aug 3, 2021 · 0 comments
Open

Comments

@h2plucifer
Copy link

h2plucifer commented Aug 3, 2021

Hi ,
CI have following enum values :

/**

/**

Above enum values are used as type of @param as follows :
/**
* @method getAllClasses
* @activity getAllClasses (serviceName)
* @description Gets all the classes of the service
* @mode positional
* @param {enum.$.enums.services} serviceName service name
* @param {enum.$.enums.serviceName} serviceClass name
* @return {*} classList
*/
getAllClasses(serviceName) {
let classes = Object.getOwnPropertyNames(serviceName);
return classes;
};

Currently I am trying to utilize value of First @param as the type of 2nd @param (so based on serviceName value type of 2nd @param should be set).

But this approach currently not working for me.

Please let me know how the type of 2nd @param can be set dynamically based on the value of serviceName (in first @param)

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant