mirror of
https://github.com/vercel/commerce.git
synced 2025-04-29 14:27:50 +00:00
* Updated core types for commerce provider * Updated bigcommerce provider * Added util method for provider creation * Removed unrequired code from saleor * Updated shopify provider * Updated providers and local setup * Updated saleor setup * Updated swell * Updated vendure * Updated swell-js usage * Removed unrequired import from saleor
8 lines
184 B
TypeScript
8 lines
184 B
TypeScript
import swell from '../../swell'
|
|
|
|
const fetchApi = async (query: string, method: string, variables: [] = []) => {
|
|
return swell[query][method](...variables)
|
|
}
|
|
|
|
export default fetchApi
|