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.