Add IBuffer, IBufferSet and fix CircularList type

This commit is contained in:
Daniel Imms
2017-07-16 03:47:15 +03:00
committed by Paris Kasidiaris
parent cb5a452c90
commit 59f75555bc
6 changed files with 41 additions and 17 deletions
+3 -3
View File
@@ -3,7 +3,7 @@
*/
import jsdom = require('jsdom');
import { assert } from 'chai';
import { ITerminal } from './Interfaces';
import { ITerminal, ICircularList } from './Interfaces';
import { CharMeasure } from './utils/CharMeasure';
import { CircularList } from './utils/CircularList';
import { SelectionManager } from './SelectionManager';
@@ -13,7 +13,7 @@ import { BufferSet } from './BufferSet';
class TestSelectionManager extends SelectionManager {
constructor(
terminal: ITerminal,
buffer: CircularList<any>,
buffer: ICircularList<[number, string, number][]>,
rowContainer: HTMLElement,
charMeasure: CharMeasure
) {
@@ -37,7 +37,7 @@ describe('SelectionManager', () => {
let document: Document;
let terminal: ITerminal;
let bufferLines: CircularList<any>;
let bufferLines: ICircularList<[number, string, number][]>;
let rowContainer: HTMLElement;
let selectionManager: TestSelectionManager;