import User from '../../domain/user/user' ; export interface IUserRepo { nextIdentity ( ) : string ; all ( ) : Promise < User [ ] > ; findById ( userId ) : Promise < User | null > ; findByEmail ( email ) : Promise < User | null > ; findByUsername ( email ) : Promise < User | null > ; count ( ) : Promise < number > ; persist ( user ) : Promise < User > ; }