Skip to content

Instantly share code, notes, and snippets.

@manojsinghnegiwd
Created August 1, 2020 19:39
Show Gist options
  • Save manojsinghnegiwd/c687d2d503a197a7844b955252d7f434 to your computer and use it in GitHub Desktop.
Save manojsinghnegiwd/c687d2d503a197a7844b955252d7f434 to your computer and use it in GitHub Desktop.
class SearchRecSys {
//..... our other code
loadProviders = (
providers: SearchResultProvider | SearchResultProvider[]
): void => {
this.providers = this.providers.concat(providers)
}
//..... our other code
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment