import { Project } from '../Project.entity' ; export interface IProjectRepository { save ( project ) : Promise < Project > ; findOneByName ( name ) : Promise < Project | undefined > ; findOneById ( id ) : Promise < Project | undefined > ; findProjects ( page , customerId ? ) : Promise < [ Project [ ] , number ] > ; }