fi(SW-188): implement PR feedback

This commit is contained in:
Chuma McPhoy
2024-08-20 17:23:23 +02:00
parent f3d32033a5
commit f4586ba35b
6 changed files with 23 additions and 19 deletions

View File

@@ -7,7 +7,7 @@ import type {
RequestOptionsWithJSONBody,
RequestOptionsWithOutBody,
} from "@/types/fetch"
import type { Endpoint } from "./endpoints"
import type { Endpoint, endpoints } from "./endpoints"
export { endpoints } from "./endpoints"
@@ -27,7 +27,7 @@ const fetch = fetchRetry(global.fetch, {
})
export async function get(
endpoint: Endpoint | `${Endpoint}/${string}`,
endpoint: Endpoint | `${endpoints.v1.hotels}/${string}`,
options: RequestOptionsWithOutBody,
params?: URLSearchParams
) {