Function
getAutocompleteCompanies
(
query: string,
type: AutocompleteType = AutocompleteType.Company,
limit = 10,
)
Source from the content-addressed store, hash-verified
| 55 | `; |
| 56 | |
| 57 | export const getAutocompleteCompanies = async ( |
| 58 | query: string, |
| 59 | type: AutocompleteType = AutocompleteType.Company, |
| 60 | limit = 10, |
| 61 | ): Promise<Company[]> => { |
| 62 | const res = await gqlClient.request(AUTOCOMPLETE_COMPANY_QUERY, { |
| 63 | query, |
| 64 | limit, |
| 65 | type, |
| 66 | }); |
| 67 | return res.autocompleteCompany; |
| 68 | }; |
| 69 | |
| 70 | export interface GitHubRepository { |
| 71 | id: string; |
Tested by
no test coverage detected