Options
All
  • Public
  • Public/Protected
  • All
Menu

A fuzzy matcher that uses domain knowledge about contacts and sets up a simpler API.

export

Type parameters

  • Contact

    The type of the contact object.

Hierarchy

  • EnContactMatcher

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Readonly config

config: MatcherConfig = ...

Methods

find

  • find(query: string): Contact[]
  • Find a contact.

    memberof

    EnContactMatcher

    Parameters

    • query: string

      The search query.

    Returns Contact[]

    The matched contacts.

findByAlias

  • findByAlias(alias: string): Contact[]
  • Find a contact by only searching over their aliases.

    memberof

    EnContactMatcher

    Parameters

    • alias: string

      The alias to search for.

    Returns Contact[]

    The matched contacts.

findByName

  • findByName(name: string): Contact[]
  • Find a contact by only searching over their names.

    memberof

    EnContactMatcher

    Parameters

    • name: string

      The name to search for.

    Returns Contact[]

    The matched contacts.

Generated using TypeDoc