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

This commit is contained in:
Stevche Radevski
2024-05-20 09:27:21 +02:00
committed by GitHub
parent cd312287f5
commit 028f63eb63
48 changed files with 446 additions and 447 deletions
+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,
})