mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Generalize TypeScript and add typings to getPage
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
import { createEndpoint } from '@commerce/api'
|
||||
import type { CommerceAPI } from '@commerce/api'
|
||||
import type { GetAPISchema } from '@commerce/api'
|
||||
import type { GetAPISchema, CommerceAPI } from '@commerce/api'
|
||||
import checkoutEndpoint from '@commerce/api/endpoints/checkout'
|
||||
import type { CheckoutSchema } from '@commerce/types/checkout'
|
||||
import checkout from './checkout'
|
||||
import { SpreeApiProvider } from '../..'
|
||||
import type { SpreeApiProvider } from '../..'
|
||||
|
||||
export type CheckoutAPI = GetAPISchema<
|
||||
CommerceAPI<SpreeApiProvider>,
|
||||
|
Reference in New Issue
Block a user