mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 22:44:18 +08:00
* pdf def file * fuzzyset * fuzzyset * fuzzyset * dtslint * dtslint * dtslint * fuzzyset renamed to fuzzyset.js * fuzzyset ok$ * fuzzyset ok
18 lines
572 B
TypeScript
18 lines
572 B
TypeScript
// Type definitions for fuzzset 1.0
|
|
// Project: https://github.com/washt/fuzzyset
|
|
// Definitions by: Louis Grignon <https://github.com/lgrignon>
|
|
// 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;
|