diff --git a/src/index.ts b/src/index.ts index bbbd959..338f46c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -// codegen:start {preset: barrel, include: ./hooks/*.ts} +// codegen:start {preset: barrel, include: ./**/*, exclude: [./index.ts, ./types/*, ./google-map.ts]} export * from './hooks/autocomplete'; export * from './hooks/directions'; export * from './hooks/distance-matrix'; @@ -7,4 +7,5 @@ export * from './hooks/geocoder'; export * from './hooks/map-instance'; export * from './hooks/max-zoom'; export * from './hooks/places'; +export * from './map-provider'; // codegen:end diff --git a/src/map-provider.tsx b/src/map-provider.tsx index 24247e3..300be28 100644 --- a/src/map-provider.tsx +++ b/src/map-provider.tsx @@ -28,7 +28,7 @@ export const GoogleMapContext = React.createContext({ /** * The global Google Map provider */ -const GoogleMapProvider: React.FunctionComponent< +export const GoogleMapProvider: React.FunctionComponent< PropsWithChildren > = props => { const { @@ -110,5 +110,3 @@ const GoogleMapProvider: React.FunctionComponent< ); }; - -export default GoogleMapProvider;