aboutsummaryrefslogtreecommitdiff
path: root/src/utils/ChangeList.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/ChangeList.ts')
-rw-r--r--src/utils/ChangeList.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utils/ChangeList.ts b/src/utils/ChangeList.ts
index 4f6bbb8..cce37a3 100644
--- a/src/utils/ChangeList.ts
+++ b/src/utils/ChangeList.ts
@@ -32,6 +32,14 @@ export class ChangeList<T>{
this.set.add(item);
}
+ public add(item: T) {
+ return this.set.add(item);
+ }
+
+ public remove(item: T) {
+ return this.set.delete(item);
+ }
+
public getChanges() {
return this.set.values();
}