I'm trying to fix JSDoc for my methods right now. And I'm confused of what I should write for it as the method doesn't return anything but call another method depending on if/else code.
methodOne () {
if (something) {
this.runMethod()
} else {
this.runAnotherMethod()
}
}
just add
methodOne(): void {
if (something) {
this.runMethod()
} else {
this.runAnotherMethod()
}
}```
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.