// Generated by smithplates HTTP codegen. Do not edit.

import { WarehouseApiClient } from "generated/example/warehouseApi/clients/warehouseClient";

export interface ApiClients {
  warehouseClient: WarehouseApiClient;
}

export function createApiClients(
  baseUrl: string,
  fetchFn: typeof fetch = fetch,
): ApiClients {
  const normalizedBaseUrl = baseUrl.replace(/\/+$/, "");
  return {
    warehouseClient: new WarehouseApiClient(normalizedBaseUrl, fetchFn),
  };
}
