Switch to a discriminated unions

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-07-20 16:33:53 +01:00
parent 2bf5e4b142
commit ed0d9973b7
9 changed files with 130 additions and 74 deletions

View file

@ -16,12 +16,11 @@ limitations under the License.
import EditorModel from "./model";
import {IDiff} from "./diff";
import {ISerializedPart} from "./parts";
import Range from "./range";
import {SerializedPart} from "./parts";
import {Caret} from "./caret";
interface IHistory {
parts: ISerializedPart[];
parts: SerializedPart[];
caret: Caret;
}