From 35fc7a37a4be8698463c75cad8e81d2545e9f79e Mon Sep 17 00:00:00 2001 From: Userbit <34487074+Userbit@users.noreply.github.com> Date: Fri, 14 Feb 2020 13:47:03 +0300 Subject: [PATCH] Change `Object` type to `Visitable` --- visitor/visitor.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/visitor/visitor.ts b/visitor/visitor.ts index 36da431..48db607 100644 --- a/visitor/visitor.ts +++ b/visitor/visitor.ts @@ -40,13 +40,13 @@ class DecorateVisitor implements IVisitor { } class ItemsGroup implements Visitable { - private _items: Object[]; + private _items: Visitable[]; constructor() { this._items = []; } - public addItem(item: Object) { + public addItem(item: Visitable) { this._items.push(item); } @@ -67,4 +67,4 @@ class ItemsGroup implements Visitable { group.accept(mainVisitor); group.accept(sideVisitor); -})(); \ No newline at end of file +})();