Add a forms accessor to TaxReturn.
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 8 Mar 2020 23:07:13 +0000 (19:07 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 8 Mar 2020 23:07:13 +0000 (19:07 -0400)
src/TaxReturn.ts

index 911da8237fc7035e612cb1edb3592d280c45a055..3320756f6885045062ba148b5fdc6ac9acfa3c9a 100644 (file)
@@ -16,6 +16,10 @@ export default class TaxReturn {
     return this._year;
   }
 
+  get forms(): Form<any, unknown>[] {
+    return [...this._forms];
+  }
+
   addPerson(person: Person) {
     if (person.relation == Relation.Dependent) {
       throw new UnsupportedFeatureError('Dependents are not supported');