import { Customer } from '../Customer.entity' ; export interface ICustomerRepository { save ( customer ) : Promise < Customer > ; findOneByName ( name ) : Promise < Customer | undefined > ; findOneById ( id ) : Promise < Customer | undefined > ; findCustomers ( page ) : Promise < [ Customer [ ] , number ] > ; }