UNPKG

@types/fuzzyset

Version:
43 lines (30 loc) 1.15 kB
# 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. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fuzzyset/index.d.ts) ````ts 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](https://github.com/lgrignon), and [Narain Sagar](https://github.com/narainsagar).