Skip to content

Commit

Permalink
fix: Added missing type for secondary_text_matched_substrings (#675)
Browse files Browse the repository at this point in the history
  • Loading branch information
Darapsas authored Oct 7, 2021
1 parent 1504d2a commit 66720cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1585,6 +1585,11 @@ export interface StructuredFormatting {
main_text_matched_substrings: PredictionSubstring[];
/** contains the secondary text of a prediction, usually the location of the place. */
secondary_text: string;
/**
* contains an array with `offset` value and `length`. These describe the location of
* the entered term in the prediction result secondary text, so that the term can be highlighted if desired.
*/
secondary_text_matched_substrings: PredictionSubstring[];
}

export interface SnappedPoint {
Expand Down

0 comments on commit 66720cb

Please sign in to comment.