Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

Commit

Permalink
Fix type of cluster
Browse files Browse the repository at this point in the history
cluster is actually an instance of the private Cluster type, which
extends EventEmitter.  Therefore, annotate cluster as being of type
EventEmitter.

Note:  This code is now not runnable, since assigning to cluster would
require either reference to the events namespace (which isn't imported)
or leaving it null which would fail for subsequent property accesses.
But that's fine, since externs aren't run.

Signed-off-by: Kevin Locke <[email protected]>
  • Loading branch information
kevinoid committed Apr 13, 2013
1 parent d76ca54 commit 7c545e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
*/

/**
* @extends events.EventEmitter
* @type events.EventEmitter
*/
var cluster = function() {};
var cluster;

/**
* @typedef {{exec: string, args: Array.<string>, silent: boolean}}
Expand Down

0 comments on commit 7c545e0

Please sign in to comment.