Skip to main content

@journeyapps/reactor-lib-search

Classes

ClassDescription
SearchResult-

Interfaces

SearchEngineInterface

Type Parameters

Type ParameterDefault type
T extends SearchResultEntry-
S extends SearchEventSearchEvent

Methods

doSearch()
doSearch(event): SearchResult<T>;
Parameters
ParameterType
eventSearchEvent
Returns

SearchResult<T>


SearchEvent

Properties

PropertyType
matches(input, options?) => SearchEventMatch
searchstring

SearchResultEntry

Properties

PropertyType
keystring

SearchResultListener

Properties

PropertyTypeDescription
dispose() => anyCalled when the search results are disposed of
loadMore() => any-

Type Aliases

SearchEventLocators

type SearchEventLocators = {
locatorEnd: number;
locatorStart: number;
}[];

Type Declaration

NameType
locatorEndnumber
locatorStartnumber

SearchEventMatch

type SearchEventMatch =
| {
locators: SearchEventLocators;
}
| false;

SearchEventMatcher

type SearchEventMatcher = (a) => SearchEventMatch;

Parameters

ParameterType
astring

Returns

SearchEventMatch

Variables

trimSearch

const trimSearch: (a) => string & MemoizedFunction;

Fast search term generator that trims and null checks

Functions

FunctionDescription
createSearchEventMatcher-
createSearchEventMatcherBool-