import type { TypeWithDefaults } from "types"; import type { ClientErrorType, ClientOptionsType } from "client"; import { Client } from "client"; import type { HttpAdapterType } from "http-adapter"; export type ClientGenericType = { error?: ClientErrorType; }; export function createClient( options: ClientOptionsType>>>, ): Client>, HttpAdapterType> { return new Client>, HttpAdapterType>(options); }