ws-dottie
Version:
Your friendly TypeScript companion for Washington State transportation APIs - WSDOT and WSF data with smart caching and React Query integration
14 lines • 942 B
TypeScript
import type { UseQueryResult } from "@tanstack/react-query";
import type { CacheFlushDateInput, CacheFlushDateOutput } from "../../shared/cacheFlushDate";
import type { FetchFunctionParams, QueryHookOptions } from "../../types";
/**
* Fetch function for retrieving timestamp of when static wsf-schedule data was last updated
*/
export declare const fetchCacheFlushDateSchedule: (params?: FetchFunctionParams<CacheFlushDateInput>) => Promise<CacheFlushDateOutput>;
/**
* React Query hook for retrieving timestamp of when static wsf-schedule data was last updated
*/
export declare const useCacheFlushDateSchedule: (params?: FetchFunctionParams<CacheFlushDateInput>, options?: QueryHookOptions<CacheFlushDateOutput>) => UseQueryResult<CacheFlushDateOutput, Error>;
export type CacheFlushDateScheduleInput = CacheFlushDateInput;
export type CacheFlushDateSchedules = CacheFlushDateOutput;
//# sourceMappingURL=cacheFlushDateSchedule.d.ts.map