Download wp-calypso/client/dashboard/app/queries/domains.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 503 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/dashboard/app/queries/domains.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/dashboard/app/queries/domains.ts
-
curl -L -o domains.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/dashboard/app/queries/domains.ts
503 Bytes
| import { fetchDomains, fetchDomainSuggestions } from '../../data/domains'; | |
| import type { DomainSuggestionQuery } from '../../data/types'; | |
| export const domainsQuery = () => ( { | |
| queryKey: [ 'domains' ], | |
| queryFn: fetchDomains, | |
| } ); | |
| export const domainSuggestionsQuery = ( | |
| search: string, | |
| domainSuggestionQuery?: Partial< DomainSuggestionQuery > | |
| ) => ( { | |
| queryKey: [ 'domain-suggestions', search, domainSuggestionQuery ], | |
| queryFn: () => fetchDomainSuggestions( search, domainSuggestionQuery ), | |
| } ); | |