import Project from '../infra/typeorm/entities/Project' ; import ICreateProjectDTO from '../dtos/ICreateProjectDTO' ; interface IProjectsRepository { findAll ( ) : Promise < Project [ ] > ; findById ( id ) : Promise < Project | undefined > ; create ( data ) : Promise < Project > ; save ( data ) : Promise < Project > ; remove ( id ) : void ; search ( term ) : Promise < Project [ ] > ; } export default IProjectsRepository ;