import { authClient } from "./auth-client"; import { httpClient } from "./http-client"; import { IllegalModificationError } from "./errors"; export const Transport = { get Auth() { return authClient; }, get Http() { return httpClient; }, // Disallow changing Auth and Http set Auth(something) { throw IllegalModificationError(something, "Auth"); }, set Http(something) { throw IllegalModificationError(something, "Http"); }, };