You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Hi ,
CI have following enum values :
/**
*/
enums.services = {
BP: 'Type01',
CC: 'Type02'
};
/**
*/
enums.BP = {
BP1: 'Type01',
BP2: 'Type02'
};
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
The text was updated successfully, but these errors were encountered: