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 { ShopifyConfig, getConfig } from '..'
import type { Page } from '../../utils/types' import type { Page } from '../../types'
export type { Page } export type { Page }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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