import { Contact } from '../Contact.entity' ; export interface IContactRepository { save ( contact ) : Promise < Contact > ; findOneById ( id ) : Promise < Contact | undefined > ; findContacts ( page ) : Promise < [ Contact [ ] , number ] > ; remove ( contact ) : Promise < void > ; }