I am writing a logger service for nodeJS in Typescript. I have an enum as below:
enum LOG_TYPES {
NONE = 0,
ERROR = 1,
WARN = 2,
INFO = 3,
DEBUG = 4,
}
then I have an setLogType function:
setLogType(type: LOG_TYPES) {
this.logType = type
}
My problem is I don't know how to make docs for the type
param.
My expectation is the recommendation would show like this
0 NONE
1 ERROR
2 WARN
3 INFO
4 DEBUG
...