@sb1/ffe-account-selector-react
Version:
Selector for bank accounts with autocomplete.
7 lines (6 loc) • 393 B
TypeScript
import { Account } from './types';
/**
* This matcher function closely resembles the default one of SearchableDropdown,
* but it ignores all spaces and periods so that account number formatting won't mess with the search.
*/
export declare const searchMatcherIgnoringAccountNumberFormatting: <T extends Account>(searchString: string, searchAttributes: (keyof T)[]) => (item: T) => boolean;