import { User } from '../User.entity' ; export interface IUserRepository { findOneByApiToken ( apiToken ) : Promise < User | undefined > ; findOneByEmail ( email ) : Promise < User | undefined > ; findOneById ( id ) : Promise < User | undefined > ; save ( user ) : Promise < User > ; findUsers ( withAccountant ) : Promise < User [ ] > ; }