Fixed types

This commit is contained in:
Luis Alvarez
2021-02-25 17:18:50 -05:00
parent 46ae76c67f
commit e90d9a2121
9 changed files with 28 additions and 23 deletions

View File

@@ -2,9 +2,9 @@ import useCustomer, { UseCustomer } from '@commerce/customer/use-customer'
import { Customer } from '@commerce/types'
import { SWRHook } from '@commerce/utils/types'
import { getCustomerQuery, getCustomerToken } from '../utils'
import type { ShopifyProvider } from '..'
export default useCustomer as UseCustomer<ShopifyProvider>
export default useCustomer as UseCustomer<typeof handler>
export const handler: SWRHook<Customer | null> = {
fetchOptions: {
query: getCustomerQuery,