Extending native node.js class
e00dan opened this issue · 2 comments
e00dan commented
When using @extend
keyword with class that isn't declared in my project, but it's native node.js class I get red text on gray background like it's error. Code example:
###
# @module DownloadHandler
###
EventEmitter = require('events').EventEmitter
###
# Class to handle file downloads
# @namespace Download
# @class DownloadHandler
# @extends EventEmitter
###
class DownloadHandler extends EventEmitter
###
# Constructor
###
constructor: ->
EventEmitter.call this
module.exports = DownloadHandler
sixmen commented
You can specify such types in external-types.
Please see https://github.com/croquiscom/cormo/blob/master/crojsdoc.yaml
e00dan commented
Yep, that works.