I am currently developing a logger service for nodeJS using Typescript. One important component of this project is an enum that looks like this:
enum LOG_TYPES {
NONE = 0,
ERROR = 1,
WARN = 2,
INFO = 3,
DEBUG = 4,
}
Along with the enum, I have implemented a function called setLogType:
setLogType(type: LOG_TYPES) {
this.logType = type
}
However, I am facing a challenge in documenting the 'type' parameter.
https://i.sstatic.net/o4Gu3.png
I hope to have the documentation displayed in the following format:
0 NONE
1 ERROR
2 WARN
3 INFO
4 DEBUG
...