ParamsArray to Types.ts

This commit is contained in:
Jörg Breitbart
2019-07-04 12:12:11 +02:00
parent 69dcabbfce
commit 6bcd8e3bfd
4 changed files with 11 additions and 9 deletions
@@ -3,14 +3,13 @@
* @license MIT
*/
import { IDcsHandler, IParsingState, IParams } from 'common/parser/Types';
import { IDcsHandler, IParsingState, IParams, ParamsArray } from 'common/parser/Types';
import { EscapeSequenceParser, TransitionTable, VT500_TRANSITION_TABLE } from 'common/parser/EscapeSequenceParser';
import * as chai from 'chai';
import { StringToUtf32, stringFromCodePoint } from 'common/input/TextDecoder';
import { ParserState } from 'common/parser/Constants';
import { Params } from 'common/parser/Params';
type ParamsArray = (number | number[])[];
function r(a: number, b: number): string[] {
let c = b - a;
@@ -30,7 +29,7 @@ class TestEscapeSequenceParser extends EscapeSequenceParser {
this._osc = value;
}
public get params(): ParamsArray {
return this._params.toArray() as ParamsArray;
return this._params.toArray();
}
public set params(value: ParamsArray) {
this._params = Params.fromArray(value);