Skip to content

Commit bea4ee8

Browse files
committed
refactor(hooks): export props interfaces
1 parent 9cf5f64 commit bea4ee8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hooks/autocomplete.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {useState, useRef, useEffect} from 'react';
22

33
import {useGoogleMap} from './map-instance';
44

5-
interface AutocompleteProps {
5+
export interface AutocompleteProps {
66
inputField: HTMLInputElement | null;
77
options?: google.maps.places.AutocompleteOptions;
88
onPlaceChanged: (place: google.maps.places.PlaceResult) => void;

src/hooks/directions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {useMemo, useEffect, useCallback} from 'react';
22

33
import {useGoogleMap} from './map-instance';
44

5-
interface DirectionsProps {
5+
export interface DirectionsProps {
66
renderOnMap?: boolean;
77
renderOptions?: google.maps.DirectionsRendererOptions;
88
}

0 commit comments

Comments
 (0)