import { Invoice } from '../Invoice.entity' ; export interface IInvoiceRepository { save ( invoice ) : Promise < Invoice > ; countByYear ( year ) : Promise < number > ; findInvoices ( page ) : Promise < [ Invoice [ ] , number ] > ; }