remove toArray; interface type for iterator result

This commit is contained in:
Jörg Breitbart
2018-09-14 12:59:56 +02:00
parent 50d600877c
commit 9ce2894353
4 changed files with 22 additions and 26 deletions
+6 -2
View File
@@ -268,10 +268,14 @@ export interface ITerminalOptions extends IPublicTerminalOptions {
useFlowControl?: boolean;
}
export interface IBufferStringIteratorResult {
range: {first: number, last: number};
content: string;
}
export interface IBufferStringIterator {
hasNext(): boolean;
next(withRanges: boolean): string | [{first: number, last: number}, string];
toArray(): string[];
next(): IBufferStringIteratorResult;
}
export interface IBuffer {