don't instantiate
This commit is contained in:
parent
308c2a323c
commit
c472873975
|
@ -9,7 +9,7 @@ let termBin: Buffer;
|
||||||
const fakeWrite = () => undefined;
|
const fakeWrite = () => undefined;
|
||||||
process.stdout.write = fakeWrite as any;
|
process.stdout.write = fakeWrite as any;
|
||||||
|
|
||||||
class Port extends Duplex {
|
export class Port extends Duplex {
|
||||||
constructor() {
|
constructor() {
|
||||||
super({ objectMode: true });
|
super({ objectMode: true });
|
||||||
}
|
}
|
||||||
|
@ -52,4 +52,3 @@ class Port extends Duplex {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const port = new Port();
|
|
||||||
|
|
Loading…
Reference in New Issue