This repository was archived by the owner on Jun 5, 2020. It is now read-only.
Commit 7c545e0
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
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments