annotations
annotations copied to clipboard
class notation support
As I noticed it works well for functions but not for class notation, right? (edited since I found a closed issue about ES6 classes) I have an example that returns nothing as a result:
"use strict"
const BasicController = require(APP_PATH + '/infrastructure/contracts/BasicController')
/**
* Common Application Controller
*/
class AppController extends BasicController {
/**
* DI
* @param {Container} container
*/
constructor(container) {
super()
}
index(req, res, next) {
res.send('OK')
}
}
module.exports = AppController