1.0.7 • Published 6 months ago
@types/fuzzyset v1.0.7
Installation
npm install --save @types/fuzzyset
Summary
This package contains type definitions for fuzzset (https://github.com/washt/fuzzyset).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fuzzyset.
index.d.ts
// Type definitions for fuzzset 1.0
// Project: https://github.com/washt/fuzzyset
// Definitions by: Louis Grignon <https://github.com/lgrignon>
// Narain Sagar <https://github.com/narainsagar>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Thu, 16 Dec 2021 22:31:57 GMT
- Dependencies: none
- Global values:
FuzzySet
Credits
These definitions were written by Louis Grignon, and Narain Sagar.