Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/lookup-by-path > IPrefixMatch

IPrefixMatch interface

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Object containing both the matched item and the start index of the remainder of the query.

Signature:

export interface IPrefixMatch<TItem extends {}> 

Properties

Property

Modifiers

Type

Description

index

number

(BETA) The index of the first character after the matched prefix

lastMatch?

IPrefixMatch<TItem>

(BETA) (Optional) The last match found (with a shorter prefix), if any

value

TItem

(BETA) The item that matched the prefix