import { EntityId } from 'typeorm/repository/EntityId' ; import { DeleteResult } from 'typeorm' ; export interface IBaseService < T > { index ( ) : Promise < T [ ] > ; findById ( id ) : Promise < T > ; findByIds ( id ) : Promise < T [ ] > ; store ( data ) : Promise < T > ; update ( id , data ) : Promise < T > ; delete ( id ) : Promise < DeleteResult > ; }