update reference to types file

This commit is contained in:
Peter Mekhaeil 2021-01-29 17:59:26 +08:00
parent 01d73cdda7
commit 7e4f975728
8 changed files with 9 additions and 9 deletions

View File

@ -1,5 +1,5 @@
import { ShopifyConfig, getConfig } from '..'
import type { Page } from '../../utils/types'
import type { Page } from '../../types'
export type { Page }

View File

@ -1,5 +1,5 @@
import { getConfig, ShopifyConfig } from '../api'
import { Page as PageType, PageEdge } from '../utils/types'
import { Page as PageType, PageEdge } from '../types'
export type Page = PageType

View File

@ -7,7 +7,7 @@ import React, {
useEffect,
} from 'react'
import Client from 'shopify-buy'
import { Shop, Cart, Client as ClientType } from './utils/types'
import { Shop, Cart, Client as ClientType } from './types'
import {
getCheckoutIdFromStorage,
setCheckoutIdInStorage,

View File

@ -1,6 +1,6 @@
import Client from 'shopify-buy'
import { getConfig } from '../api'
import { Product } from '../utils/types'
import { Product } from '../types'
import toCommerceProducts from '../utils/to-commerce-products'
type ReturnType = {

View File

@ -1,6 +1,6 @@
import Client from 'shopify-buy'
import { ShopifyConfig } from '../api'
import { Product } from '../utils/types'
import { Product } from '../types'
import toCommerceProducts from '../utils/to-commerce-products'
export type ProductNode = Product

View File

@ -1,6 +1,6 @@
import Client from 'shopify-buy'
import { ShopifyConfig } from '../api'
import { Product } from '../utils/types'
import { Product } from '../types'
import toCommerceProducts from '../utils/to-commerce-products'
export type ProductNode = Product

View File

@ -1,7 +1,7 @@
import type { HookFetcher } from '@commerce/utils/types'
import type { SwrOptions } from '@commerce/utils/use-data'
import useCommerceSearch from '@commerce/products/use-search'
import { ProductEdge } from '@framework/utils/types'
import { ProductEdge } from '../types'
const defaultOpts = {}

View File

@ -1,8 +1,8 @@
import { HookFetcher } from '@commerce/utils/types'
import { SwrOptions } from '@commerce/utils/use-data'
import useCommerceWishlist from '@commerce/wishlist/use-wishlist'
import { Product } from '@framework/utils/types'
import useCustomer from '../use-customer'
import { Product } from '../types'
import useCustomer from '../customer/use-customer'
const defaultOpts = {}