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