Ignore some types

This commit is contained in:
Luis Alvarez
2021-02-25 18:10:59 -05:00
parent e90d9a2121
commit fc023de844
12 changed files with 22 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
import type { Wishlist as BCWishlist } from '@framework/api/wishlist'
import type { Customer as BCCustomer } from '@framework/api/customers'
import type { SearchProductsData as BCSearchProductsData } from '@framework/api/catalog/products'
import type { Wishlist as BCWishlist } from '../bigcommerce/api/wishlist'
import type { Customer as BCCustomer } from '../bigcommerce/api/customers'
import type { SearchProductsData as BCSearchProductsData } from '../bigcommerce/api/catalog/products'
export type Discount = {
// The value of the discount, can be an amount or percentage

View File

@@ -4,7 +4,7 @@ import useCommerceCart, {
UseCart,
} from '@commerce/cart/use-cart'
import { Cart } from '@commerce/types'
import { Cart } from '../types'
import { SWRHook } from '@commerce/utils/types'
import { checkoutCreate, checkoutToCart } from './utils'
import getCheckoutQuery from '../utils/queries/get-checkout-query'

View File

@@ -1,4 +1,4 @@
import { Cart } from '@commerce/types'
import { Cart } from '../../types'
import { CommerceError, ValidationError } from '@commerce/utils/errors'
import {

View File

@@ -28,7 +28,8 @@ export type ShopifyProps = {
export function CommerceProvider({ children, ...config }: ShopifyProps) {
return (
<CoreCommerceProvider
provider={shopifyProvider}
// TODO: Fix this type
provider={shopifyProvider as any}
config={{ ...shopifyConfig, ...config }}
>
{children}

View File

@@ -3,7 +3,7 @@ import { CollectionEdge } from '../schema'
import getSiteCollectionsQuery from './queries/get-all-collections-query'
export type Category = {
endityId: string
entityId: string
name: string
path: string
}