Skip to content

Commit

Permalink
Merge pull request #737 from wellyshen/feature/remove-readonly-props
Browse files Browse the repository at this point in the history
Refactor(types): remove `readonly` from the data property of suggestion
  • Loading branch information
wellyshen authored May 19, 2021
2 parents 7538d5d + c2a47e7 commit a2c6dd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/use-places-autocomplete.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ declare module "use-places-autocomplete" {
export interface Suggestions {
readonly loading: boolean;
readonly status: string;
readonly data: Suggestion[];
data: Suggestion[];
}

export interface SetValue {
Expand Down
2 changes: 1 addition & 1 deletion src/usePlacesAutocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type Suggestion = google.maps.places.AutocompletePrediction;
interface Suggestions {
readonly loading: boolean;
readonly status: string;
readonly data: Suggestion[];
data: Suggestion[];
}
interface SetValue {
(val: string, shouldFetchData?: boolean): void;
Expand Down

0 comments on commit a2c6dd2

Please sign in to comment.