interface ISource { data : string [ ] [ ] ; types : string [ ] ; columns : string [ ] ; } class DataSource { private sources : { [ name ] : ISource ; } ; constructor ( ) { this . sources = { } ; } public set ( name , source ) { this . sources [ name ] = source ; } public get ( name ) { return this . sources [ name ] ; } } export default DataSource ;