import LibraryItem from '../infra/typeorm/entities/LibraryItem' ; import ICreateLibraryItem from '../dtos/ICreateLibraryItem' ; import IFilterLibrary from '../dtos/IFilterLibrary' ; interface ICategoryRepository { findAll ( filters ? ) : Promise < LibraryItem [ ] > ; findById ( id ) : Promise < LibraryItem | undefined > ; create ( data ) : Promise < LibraryItem > ; save ( data ) : Promise < LibraryItem > ; remove ( id ) : void ; search ( term ) : Promise < LibraryItem [ ] > ; } export default ICategoryRepository ;