@types/fuzzyset.js
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

Installation

npm install --save @types/fuzzyset.js

Summary

This package contains type definitions for fuzzyset.js (https://github.com/Glench/fuzzyset.js).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fuzzyset.js.

index.d.ts

interface FuzzySet {
    get<T = undefined>(candidate: string, defaultValue?: T, minScore?: number): Array<[number, string]> | T | null;
    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;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Louis Grignon, and Narain Sagar.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/fuzzyset.js

Weekly Downloads

3,716

Version

0.0.5

License

MIT

Unpacked Size

3.64 kB

Total Files

5

Last publish

Collaborators

  • types