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

Commit 7c545e0

Browse files
committed
Fix type of cluster
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]>
1 parent d76ca54 commit 7c545e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cluster.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
*/
3030

3131
/**
32-
* @extends events.EventEmitter
32+
* @type events.EventEmitter
3333
*/
34-
var cluster = function() {};
34+
var cluster;
3535

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

0 commit comments

Comments
 (0)