Code & Deploy
siGit Code
Git Hosting
Toggle menu
siGit Code
Git Hosting
Sign in
Sign in
@davoodmehraban89
/
medusa
Fork
0
medusa
/
www
/
packages
/
docs-ui
/
src
/
utils
/
swr-fetcher.ts
Code
Commits
Issues
Pulls
Cloud Agent
CICD
main
automation/medusa-upstream-review
main
project/medusa-foundation-audit
security/codeql-dependabot-gitleaks
ts
7 lines
172 Bytes
Copy permalink
Copy
Raw
1
export
const
swrFetcher
=
async
<
JSON
=
any
>
(
2
input
:
RequestInfo
,
3
init
?:
RequestInit
4
):
Promise
<
JSON
>
=>
{
5
const
res
=
await
fetch
(
input
,
init
)
6
return
res
.
json
()
7
}