Guys I'm trying to make some jsdoc comments for a return value from a js library to get ide to react to this, and I'm trying to write it like this:
declare enum documented_sstp_return_code_t {
/** OK (with return value) */
OK = 200,
//...
}
/**
* SSTP return codes
* Same as HTTP, 200s are OK, others are errors.
*/
type sstp_return_code_t = documented_sstp_return_code_t | number;
But when the IDE handles the value of type sstp_return_code_t, it doesn't show any completion and document content, it just treats it as number
How can I write to fix this?