@overse/ui-extensions-utils
Version:
Utility functions for Shopify UI Extensions
24 lines (23 loc) • 1.22 kB
text/typescript
// Async
export { fetchApp } from './async/fetchApp';
export { fetchCustomerAccountApi } from './async/fetchCustomerAccountApi';
export { fetchStorefrontApi } from './async/fetchStorefrontApi';
// Hook
export { useFetch } from './hooks/useFetch';
export { useFetchState } from './hooks/useFetchState';
// Constants
export { CHECKOUT_EXTENSION_TARGET, CUSTOMER_ACCOUNT_EXTENSION_TARGET } from './constants/targets';
// String
export { decodeGlobalID } from './string/decodeGlobalID';
export { encodeGlobalID } from './string/encodeGlobalID';
// Zod
export { parseMetaobject } from './zod/parseMetaobject';
export { zodMetaobjectKeys } from './zod/zodMetaobjectKeys';
// Types
export type { SessionToken } from '@shopify/ui-extensions/customer-account';
export type { FetchCustomerAccountOptions, GraphQLResponse, RichGraphQLError } from './async/fetchCustomerAccountApi';
export type { StorefrontApiClient } from './async/fetchStorefrontApi';
export type { BaseFetchOptions, FetchFunction } from './hooks/useFetch';
export type { FetchState } from './hooks/useFetchState';
export type { ResourceName } from './string/encodeGlobalID';
// export type * from '../../../types/extendedTypescript';