Download wp-calypso/packages/data-stores/src/purchases/index.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 504 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/purchases/index.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/data-stores/src/purchases/index.ts
-
curl -L -o index.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/purchases/index.ts
504 Bytes
| import { createPurchaseObject, createPurchasesArray } from './lib/assembler'; | |
| /** Queries */ | |
| export { default as useSitePurchases } from './queries/use-site-purchases'; | |
| /** Hooks/Selectors */ | |
| export { default as useSitePurchaseById } from './hooks/use-site-purchase-by-id'; | |
| export { default as useSitePurchasesByProductSlug } from './hooks/use-site-purchases-by-product-slug'; | |
| /** Types */ | |
| export * from './types'; | |
| /** Utils */ | |
| export const utils = { | |
| createPurchaseObject, | |
| createPurchasesArray, | |
| }; | |