import ProjectPost from '../infra/typeorm/entities/ProjectPost' ; import ICreateProjectPostDTO from '../dtos/ICreateProjectPostDTO' ; interface IProjectPostsRepository { findAll ( ) : Promise < ProjectPost [ ] > ; findById ( id ) : Promise < ProjectPost | undefined > ; findByProject ( id ) : Promise < ProjectPost [ ] > ; create ( data ) : Promise < ProjectPost > ; save ( data ) : Promise < ProjectPost > ; remove ( id ) : void ; } export default IProjectPostsRepository ;