Show placeholder message for /chechout and adjust api fetcher type

This commit is contained in:
tniezg
2021-08-18 17:53:53 +02:00
parent 3b3a181dac
commit 17f8d497b8
7 changed files with 96 additions and 10 deletions

View File

@@ -10,7 +10,9 @@ import getAllProductPaths from './operations/get-all-product-paths'
import getAllProducts from './operations/get-all-products'
import getProduct from './operations/get-product'
export interface SpreeApiConfig extends CommerceAPIConfig {}
export interface SpreeApiConfig extends CommerceAPIConfig {
fetch: any // Using any type, because CommerceAPIConfig['fetch'] cannot be extended from Variables = any to SpreeSdkVariables
}
const config: SpreeApiConfig = {
commerceUrl: '',