Lines Matching refs:query
6 query: string,
7 fetcher: (query: string, version?: string) => Promise<Response>,
11 const { hits, libraries } = await fetcher(query, version).then(response => response.json());
16 query: string,
31 params: `query=${query}&hitsPerPage=${hits}`,
39 export const getExpoDocsResults = (query: string, version?: string) => {
41 ...getAlgoliaFetchParams(query, 'QEX7PB7D46', '6652d26570e8628af4601e1d78ad456b', 'expo', 20, {
47 export const getRNDocsResults = (query: string) => {
50 query,
60 export const getDirectoryResults = (query: string) => {
154 export const addHighlight = (content: string, query: string) => {
155 const highlightStart = content.toLowerCase().indexOf(query.toLowerCase());
159 const highlightEnd = highlightStart + query.length;