class CRUD {
repository = null;
constructor(selectedRepository){
this.repository = selectedRepository;
}
someCRUDmethod(){
return this.repository.getSome();
}
}
class Current extends CRUD{
constructor(repo){
super(repo);
}
}
export default new Current(someRepo);