import restRequest from "./restRequest"; import {OrmGenerics} from "../types/ormGenerics"; import {iRest} from "../types/ormInterfaces"; type WithGetMethod> = Omit & { RequestMethod: "GET" }; export function readOnlyRestOrm>( configFn: () => Omit, "requestMethod"> ) { return { Get: restRequest>(() => ({ ...configFn(), requestMethod: "GET", })), }; }