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

0.1.3 • Public • Published

Installation

npm install --save @types/wuzzy

Summary

This package contains type definitions for wuzzy (https://github.com/xupit3r/wuzzy#readme).

Details

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

index.d.ts

export function jarowinkler(a: string | readonly string[], b: string | readonly string[], t?: number): number;

export interface LevenshteinOptions {
    d: number;
    i: number;
    s: number;
}
export function levenshtein(
    a: string | readonly string[],
    b: string | readonly string[],
    options?: LevenshteinOptions,
): number;

export function ngram(a: string | readonly string[], b: string | readonly string[], ng?: number): number;

export function pearson(a: Record<string, number>, b: Record<string, number>): number;

export function jaccard(a: string | readonly string[], b: string | readonly string[]): number;

export function tanimoto(a: string | readonly string[], b: string | readonly string[]): number;

Additional Details

  • Last updated: Mon, 20 Nov 2023 23:36:24 GMT
  • Dependencies: none

Credits

These definitions were written by Thomas Ladd.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/wuzzy

Weekly Downloads

209

Version

0.1.3

License

MIT

Unpacked Size

3.95 kB

Total Files

5

Last publish

Collaborators

  • types