mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
19 lines
636 B
TypeScript
19 lines
636 B
TypeScript
// Type definitions for fuzzset 1.0
|
|
// Project: http://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]>;
|
|
add(value: string): boolean;
|
|
length(): number;
|
|
isEmpty(): boolean;
|
|
values(): string[];
|
|
}
|
|
|
|
declare function FuzzySet(source?: string[], useLevenshtein?: boolean, gramSizeLower?: number, gramSizeUpper?: number): FuzzySet;
|
|
|
|
export = FuzzySet;
|
|
export as namespace FuzzySet;
|