import { AbstractControl } from "./abstract-control" ; export abstract class AbstractFormArray extends AbstractControl { controls : any [ ] ; constructor ( controls ) { super ( [ ] , [ ] ) ; this . controls = controls ; } at ( index ) { return this . controls [ index ] ; } push ( control ) { this . controls . push ( control ) ; } removeAt ( index ) { if ( this . controls [ index ] ) this . controls . splice ( index , 1 ) ; } get length ( ) { return this . controls . length ; } }