annotations icon indicating copy to clipboard operation
annotations copied to clipboard

class notation support

Open shov opened this issue 7 years ago • 0 comments

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

shov avatar Sep 03 '19 19:09 shov