import UserLocation from '../infra/typeorm/schemas/UserLocation' ; import User from '../infra/typeorm/entities/User' ; interface IUserLocationRepository { findByUser ( user ) : Promise < UserLocation | undefined > ; findNearby ( user , radius , location ) : Promise < User [ ] > ; save ( data ) : Promise < UserLocation > ; } export default IUserLocationRepository ;