1.0.7 • Published 6 months ago

@types/fuzzyset v1.0.7

Weekly downloads
623
License
MIT
Repository
github
Last release
6 months ago

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.

1.0.7

6 months ago

1.0.6

7 months ago

1.0.5

8 months ago

1.0.4

2 years ago

1.0.3

3 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

7 years ago