From 26feed99b32b3ca1f058034374fdfa17a4ebd2d0 Mon Sep 17 00:00:00 2001 From: Dan Borstelmann Date: Tue, 7 Apr 2020 19:55:16 -0700 Subject: [PATCH 1/2] Add regions and fix typo in options types --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index efa9289..82e745d 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,5 +1,5 @@ interface GoogleProps { - types?: '(cities)' | 'geocode' | 'establishments' | 'address' + types?: '(regions)' | '(cities)' | 'geocode' | 'establishment' | 'address' language?: string location?: '' radius?: number From cb23ea66130388972eaa480748cecef506aef1f1 Mon Sep 17 00:00:00 2001 From: Dan Borstelmann Date: Wed, 15 Apr 2020 14:53:38 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 53365a0..87e2ecc 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ const App = () => { | property | type | description | | -------------- | -------- | -------------------------------------------------------------------------------------------------- | -| `types` | `string` | `(cities)`, `geocode`, `establishments`, or `address` | +| `types` | `string` | `(regions`, `(cities)`, `geocode`, `establishment`, or `address` | | `language` | `string` | Language for results to return | | `location` | `string` | `37.7749, -122.4194` or `San Francisco, CA` | | `radius` | number | Results within the radius of the search (meters) |