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