Type Editor / @type-editor/search / types/SearchResult / SearchResult
Interface: SearchResult
Defined in: types/SearchResult.ts:4
Represents a matched instance of a search query.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
from | number | The starting position of the match in the document. | types/SearchResult.ts:8 |
match | RegExpMatchArray | The regular expression match array. This will be non-null only for regular expression queries and contains capture groups. | types/SearchResult.ts:19 |
matchStart | number | The starting position of the text block where the match was found. | types/SearchResult.ts:24 |
to | number | The ending position of the match in the document. | types/SearchResult.ts:13 |