ws-dottie
Version:
Your friendly TypeScript companion for Washington State transportation APIs - WSDOT and WSF data with smart caching and React Query integration
27 lines • 1.02 kB
TypeScript
/**
* @fileoverview Consolidated Factory Types
*
* This module contains all type definitions for factory functions used in
* endpoint creation. Types are consolidated here to simplify imports and
* maintain consistency across the factory system.
*/
import type { UseQueryOptions } from "@tanstack/react-query";
/**
* Parameters for fetch functions created by factory.
*/
export type FetchFunctionParams<TInput> = {
/** Input parameters for endpoint */
params?: TInput;
/** Fetch strategy - how to fetch data (default: "native") */
fetchMode?: "native" | "jsonp";
/** Whether to validate input/output with Zod schemas (default: false) */
validate?: boolean;
/** Logging verbosity level (default: "none") */
logMode?: "none" | "info" | "debug";
};
/**
* Helper type to simplify query hook options.
*/
export type QueryHookOptions<TData> = Omit<UseQueryOptions<TData>, "queryKey" | "queryFn">;
export { cacheStrategies } from "./strategies";
//# sourceMappingURL=types.d.ts.map