Skip to content

Type Editor


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

PropertyTypeDescriptionDefined in
fromnumberThe starting position of the match in the document.types/SearchResult.ts:8
matchRegExpMatchArrayThe regular expression match array. This will be non-null only for regular expression queries and contains capture groups.types/SearchResult.ts:19
matchStartnumberThe starting position of the text block where the match was found.types/SearchResult.ts:24
tonumberThe ending position of the match in the document.types/SearchResult.ts:13