UNPKG

ag-grid-community

Version:

Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue

21 lines (20 loc) 681 B
/** * This function provides fuzzy matching suggestions based on the input value and a list of all suggestions. */ export declare function _fuzzySuggestions(params: { inputValue: string; allSuggestions: string[]; hideIrrelevant?: boolean; filterByPercentageOfBestMatch?: number; }): { values: string[]; indices: number[]; }; /** * This uses Levenshtein Distance to match strings. * Lower values mean more similar strings. * * This function is often being called, so it must be performant. * {@link|https://github.com/ag-grid/ag-grid/issues/12473} */ export declare function _getLevenshteinSimilarityDistance(source: string, target: string): number;