Fixed ts complains

This commit is contained in:
LFades 2022-01-18 10:01:01 -05:00
parent 59a83f564d
commit a0cd07d5d7
7 changed files with 6 additions and 6 deletions

1
packages/commercejs/global.d.ts vendored Normal file
View File

@ -0,0 +1 @@
declare module '@components/checkout/context'

View File

@ -17,6 +17,6 @@
"pretty": true,
"jsx": "react-jsx"
},
"include": ["src"],
"include": ["src", "global.d.ts"],
"exclude": ["node_modules", "dist"]
}

View File

@ -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'

View File

@ -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,

View File

@ -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'

View File

@ -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'

View File

@ -15,7 +15,6 @@
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"useUnknownInCatchVariables": false,
"paths": {
"@lib/*": ["lib/*"],
"@utils/*": ["utils/*"],