title: How to pass an interface as parameter in koin
body: <p>I'm so beginner in koin.</p>
  <p>I have a method that named &quot;MesheRepoImpl&quot; that get an interface as parameter.</p>
  <p>I know that I can't pass an interface to a method in Koin, so I created a class and extends that from the interface then I added that class in koin module, so I use the class as parameter for MesheRepoImpl.</p>
  <p>But android studio gives me this error:</p>
  <p>Caused by: org.koin.core.error.NoBeanDefFoundException: |- No definition found for class:'com.app.meshe.data.repo.MesheRepo'. Check your definitions!</p>
  <p>This is my Di module:</p>
  <pre><code>val mesheModule =
      module {
          single { getInstance(androidContext()) }
          single { MesheLocalDataSource() } //*
          single { MesheRepoImpl(get()) } //**
          factory { TaskViewModelFactory(get()) }
          viewModel { TaskViewModel(get()) }
          viewModel { RewardViewModel(get()) }
          viewModel {MainViewModel()}
      }
  </code></pre>
  <p>The 1 star line is my class that extends from the interface and the 2 stars line is the class that get interface as parameter.</p>
  <p>How can I pass the interface as parameter, if I can't use a class?</p>