ws-dottie
Version:
Your friendly TypeScript companion for Washington State transportation APIs - WSDOT and WSF data with smart caching and React Query integration
13 lines • 631 B
TypeScript
/**
* @fileoverview Fetch Function Factory
*
* Creates strongly-typed fetch functions from metadata objects.
* This is a pure factory with no React Query dependencies.
*/
import type { ApiDefinition, EndpointGroupMeta, EndpointMeta } from "../../apis/types";
import type { FetchFunctionParams } from "./types";
/**
* Creates a strongly-typed fetch function from three metadata objects.
*/
export declare function createFetchFunction<I, O>(apiDefinition: ApiDefinition, group: EndpointGroupMeta, endpoint: EndpointMeta<I, O>): (params?: FetchFunctionParams<I>) => Promise<O>;
//# sourceMappingURL=createFetchFunction.d.ts.map