mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 07:26:59 +00:00
Fixed ts complains
This commit is contained in:
parent
59a83f564d
commit
a0cd07d5d7
1
packages/commercejs/global.d.ts
vendored
Normal file
1
packages/commercejs/global.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
declare module '@components/checkout/context'
|
@ -17,6 +17,6 @@
|
||||
"pretty": true,
|
||||
"jsx": "react-jsx"
|
||||
},
|
||||
"include": ["src"],
|
||||
"include": ["src", "global.d.ts"],
|
||||
"exclude": ["node_modules", "dist"]
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import CookieHandler from '../../../api/utils/cookie-handler'
|
||||
import { normalizeCart } from '../../../lib/normalize'
|
||||
import { Cart } from '../../../../../schema'
|
||||
import { Cart } from '../../../../schema'
|
||||
import type { CartEndpoint } from '.'
|
||||
import { getCartQuery } from '../../queries/get-cart-query'
|
||||
|
||||
|
@ -5,7 +5,7 @@ import type { KiboCommerceConfig, KiboCommerceProvider } from '..'
|
||||
import { normalizePage } from '../../lib/normalize'
|
||||
import { getPageQuery } from '../queries/get-page-query'
|
||||
import type { Page, GetPageQueryParams } from "../../types/page";
|
||||
import type { Document } from '../../../../schema'
|
||||
import type { Document } from '../../../schema'
|
||||
|
||||
export default function getPageOperation({
|
||||
commerce,
|
||||
|
@ -1,6 +1,6 @@
|
||||
import update from './immutability'
|
||||
import getSlug from './get-slug'
|
||||
import type { PrCategory, CustomerAccountInput, Document } from '../../../schema'
|
||||
import type { PrCategory, CustomerAccountInput, Document } from '../../schema'
|
||||
import { Page } from '../types/page';
|
||||
import { Customer } from '../types/customer'
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import * as Core from '@vercel/commerce/types/login'
|
||||
import type { CustomerUserAuthInfoInput } from '../../../schema'
|
||||
import type { CustomerUserAuthInfoInput } from '../../schema'
|
||||
|
||||
export * from '@vercel/commerce/types/login'
|
||||
|
||||
|
@ -15,7 +15,6 @@
|
||||
"isolatedModules": true,
|
||||
"jsx": "preserve",
|
||||
"incremental": true,
|
||||
"useUnknownInCatchVariables": false,
|
||||
"paths": {
|
||||
"@lib/*": ["lib/*"],
|
||||
"@utils/*": ["utils/*"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user