UNPKG

use-airport-hook

Version:

A React hook for searching airport details

16 lines (12 loc) 315 B
export interface Airport { airport_code: string; country_name: string; country_loc: string; } export interface UseAirportState { isLoading: boolean; error: string | null; data: Airport[] | null; } declare function useAirport(name?: string): UseAirportState; export default useAirport;