Skip to content

Commit

Permalink
"missing" EventEmitter props NodeVM inherits will not cause type chec…
Browse files Browse the repository at this point in the history
…k issues
  • Loading branch information
kylegoetz committed Aug 15, 2018
1 parent d336095 commit 95325aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {EventEmitter} from 'events';

/**
* Require options for a VM
*/
Expand Down Expand Up @@ -63,7 +65,7 @@ export interface NodeVMOptions extends VMOptions {
/**
* A VM with behavior more similar to running inside Node.
*/
export class NodeVM {
export class NodeVM extends EventEmitter {
constructor(options?: NodeVMOptions);
/** Runs the code */
run(js: string, path: string): any;
Expand Down

0 comments on commit 95325aa

Please sign in to comment.