import { DeepPartial , DeleteResult , FindConditions , FindManyOptions , FindOneOptions , UpdateResult } from 'typeorm' ; import { QueryDeepPartialEntity } from 'typeorm/query-builder/QueryPartialEntity' ; import { IPagination } from './pagination' ; export interface ICrudService < T > { findAll ( filter ? ) : Promise < IPagination < T > > ; findOne ( id , options ? ) : Promise < T > ; create ( entity , ... options ) : Promise < T > ; update ( id , entity , ... options ) : Promise < UpdateResult | T > ; delete ( id , ... options ) : Promise < DeleteResult > ; }