UNPKG

@the-overse/ui-extensions-utils

Version:

Utility functions for Shopify UI Extensions

27 lines (26 loc) 1.29 kB
// 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 as CHECKOUT_EXTENSION_TARGETS, CUSTOMER_ACCOUNT_EXTENSION_TARGET as CUSTOMER_ACCOUNT_EXTENSION_TARGETS, } 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';