From 66720cb38652e42e31588a4132cdabf04b91355f Mon Sep 17 00:00:00 2001 From: Darius Date: Thu, 7 Oct 2021 03:18:57 +0300 Subject: [PATCH] fix: Added missing type for secondary_text_matched_substrings (#675) --- src/common.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common.ts b/src/common.ts index db08e40d81..1fbfd1deb2 100644 --- a/src/common.ts +++ b/src/common.ts @@ -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 {