interface IEvent { date : Date ; name : string ; reason : string ; } interface IMonth { events : IEvent [ ] ; } export default class Calendar { private months : IMonth [ ] ; constructor ( months ) { this . months = months ; } public setMonths ( months ) { this . months = months ; } public getMonths ( ) { return this . months ; } }