Update types

This commit is contained in:
Catalin Pinte
2022-12-07 14:34:39 +02:00
parent f9a26370ef
commit 1ba9d3bd6e
6 changed files with 79 additions and 101 deletions

View File

@@ -1,8 +1,6 @@
import type { Page } from '@vercel/commerce/types/page'
import type {
Product,
ProductCustomField,
} from '@vercel/commerce/types/product'
import type { Product } from '@vercel/commerce/types/product'
import type { CustomField } from '@vercel/commerce/types/common'
import type { Cart, LineItem } from '@vercel/commerce/types/cart'
import type { Category, Brand } from '@vercel/commerce/types/site'
import type { BigcommerceCart, BCCategory, BCBrand } from '../types'
@@ -153,9 +151,7 @@ export function normalizeBrand(brand: BCBrand): Brand {
}
}
function normalizeCustomFieldsValue(
field: CustomFieldEdge
): ProductCustomField {
function normalizeCustomFieldsValue(field: CustomFieldEdge): CustomField {
const {
node: { entityId, name, value },
} = field