feat: Add missing typings for the http layer and cleanup some (#7260)

This commit is contained in:
Stevche Radevski authored and GitHub committed 2024-05-20 09:27:21 +02:00
1 parent cd312287f5
commit 028f63eb63
48 files changed
+446 -447

No files matched your search

+2 -1
View File
@@ -1,3 +1,4 @@
import { StoreRegion } from "@medusajs/types"
import { Client } from "../client"
import { ClientHeaders } from "../types"
@@ -23,7 +24,7 @@ export class Store {
queryParams?: Record<string, any>,
headers?: ClientHeaders
) => {
return this.client.fetch<any>(`/store/regions/${id}`, {
return this.client.fetch<StoreRegion>(`/store/regions/${id}`, {
query: queryParams,
headers,
})