ProtectedchunksThe chunks that make up the query string.
ProtecteddebounceThe debounce time.
ProtecteditemsThe items to search.
Protected ReadonlykeyThe key of the instance.
ProtectedlistenersProtectedmaxProtectedpredicateThe predicate function.
Counts the listeners that match the name, callback and options. If no arguments are passed, all listeners will be counted.
Optionalname: KOptionalcallback: TypeaheadEvents<T>[K]Optionaloptions: EventEmitterListenerOptionsProtecteddebouncefnThe debounce function.
Emits an event.
Returns the debounce time.
Returns the names of the events that have listeners.
Returns the items.
Returns the key of the instance.
Returns the listeners that match the name, callback and options. If no arguments are passed, all listeners will be returned.
Optionalname: KOptionalcallback: TypeaheadEvents<T>[K]Optionaloptions: EventEmitterListenerOptionsReturns the maximum number of listeners that can be registered for a single event.
Returns the predicate function.
Returns the query string.
Checks if the event has listeners that match the name, callback and options.
Optionalname: KOptionalcallback: TypeaheadEvents<T>[K]Optionaloptions: EventEmitterListenerOptionsRemoves the listeners that match the name, callback and options. If no arguments are passed, all listeners will be removed.
Optionalname: KOptionalcallback: TypeaheadEvents<T>[K]Optionaloptions: EventEmitterListenerOptionsAdds a listener, which will be called when the event is emitted.
Optionally the listener can be removed after the first call with the once option.
Optionally the listener can be prepended to the listeners array with the prepend option.
Optionaloptions: EventEmitterListenerOptionsAdds a listener, which will be called only once when the event is emitted.
Optionaloptions: EventEmitterListenerOptionsAdds a listener, which will be called first when the event is emitted.
Optionaloptions: EventEmitterListenerOptionsPushes chunks to the chunks array.
Searches the items for a match and emits the match event if a match is found.
Sets the chunks.
Sets the debounce time.
Sets the listeners.
Sets the maximum number of listeners that can be registered for a single event.
The Typeahead class is a state and options holder for the typeahead function.
Aracna Reference