new strings.HighlightedText(text, snippets)
The HighlightedText type.
Parameters:
Name | Type | Description |
---|---|---|
text |
string | the whole text, highlighted. |
snippets |
Array.<strings.Highlight> | the snippet associated with each highlighted text fragment. |
- Source: