mirror of
https://github.com/vercel/commerce.git
synced 2025-06-20 06:01:21 +00:00
Typescript build error fixed
This commit is contained in:
parent
53517925b9
commit
4dd52b3003
@ -1,4 +1,8 @@
|
|||||||
const request = async ({query, variables}) => {
|
interface requestProps {
|
||||||
|
query: string
|
||||||
|
variables: any
|
||||||
|
}
|
||||||
|
const request = async ({query, variables}: requestProps) => {
|
||||||
|
|
||||||
const data = await fetch('http://localhost:5000/shop-api', {
|
const data = await fetch('http://localhost:5000/shop-api', {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user