import { IStream } from "../../src/stream/stream.i";

export class StreamBuilder {

    public build(): IStream {
        return <IStream> {
            writeLine: (message: string) => { },
            write: (message: string) => { },
            moveCursor: (x: number, y: number) => { },
            cursorTo: (x: number, y: number) => { },
            clearLine: () => { }
        };
    }

}

import { IStream } from "../../src/stream/stream.i";

export class StreamBuilder {

    public build(): IStream {
        return <IStream> {
            writeLine: (message: string) => { }
        };
    }

}

--- 
+++ 
@@ -4,7 +4,11 @@
 
     public build(): IStream {
         return <IStream> {
-            writeLine: (message: string) => { }
+            writeLine: (message: string) => { },
+            write: (message: string) => { },
+            moveCursor: (x: number, y: number) => { },
+            cursorTo: (x: number, y: number) => { },
+            clearLine: () => { }
         };
     }
 
Add new methods to StreamBuilders
