Installation
npm install --save @types/fuzzyset
Summary
This package contains type definitions for fuzzyset (https://github.com/washt/fuzzyset).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fuzzyset.
interface FuzzySet {
get(candidate: string): Array<[number, string]> | null;
get<DEFAULT>(candidate: string, def?: DEFAULT, minScore?: number): Array<[number, string]> | DEFAULT;
add(value: string): false | undefined;
length(): number;
isEmpty(): boolean;
values(): string[];
}
declare function FuzzySet(
source?: string[],
useLevenshtein?: boolean,
gramSizeLower?: number,
gramSizeUpper?: number,
): FuzzySet;
export = FuzzySet;
export as namespace FuzzySet;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by Louis Grignon, and Narain Sagar.