ws-dottie
Version:
Your friendly TypeScript companion for Washington State transportation APIs - WSDOT and WSF data with smart caching and React Query integration
29 lines • 1.42 kB
TypeScript
import type { UseQueryResult } from "@tanstack/react-query";
import type { FetchFunctionParams, QueryHookOptions } from "../../types";
import { type WeatherStationsInput } from "./shared/weatherStations.input";
import { type WeatherStation } from "./shared/weatherStations.output";
/**
* Metadata for the fetchWeatherStations endpoint
*/
export declare const weatherStationsMeta: {
functionName: string;
endpoint: string;
inputSchema: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
outputSchema: import("zod").ZodArray<import("zod").ZodObject<{
Latitude: import("zod").ZodNumber;
Longitude: import("zod").ZodNumber;
StationCode: import("zod").ZodInt;
StationName: import("zod").ZodNullable<import("zod").ZodString>;
}, import("zod/v4/core").$strip>>;
sampleParams: {};
endpointDescription: string;
};
/**
* Fetch function for retrieving weather station metadata for all stations statewide
*/
export declare const fetchWeatherStations: (params?: FetchFunctionParams<WeatherStationsInput>) => Promise<WeatherStation[]>;
/**
* React Query hook for retrieving weather station metadata for all stations statewide
*/
export declare const useWeatherStations: (params?: FetchFunctionParams<WeatherStationsInput>, options?: QueryHookOptions<WeatherStation[]>) => UseQueryResult<WeatherStation[], Error>;
//# sourceMappingURL=weatherStations.d.ts.map