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