We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Great library!
Would be nice, if you'd add some simple typings like:
// index.d.ts declare module 'levenshtein-search' { export function fuzzySearch(pattern: string, text: string, maxDistance: number): IterableIterator<{ start: number, end: number, dist: number }>; export function editDistance(string1: string, string2: string): number; export function isEditDistanceNoGreaterThan(string1: string, string2: string, maxDistance: number): boolean; }
The text was updated successfully, but these errors were encountered:
Here's what I use:
declare module 'levenshtein-search' { export type FuzzyMatch = { start: number, end: number, dist: number } export function editDistance(a: string, b: string): number export function fuzzySearch(needle: string, haystack: string, maxDist: number): Iterable<FuzzyMatch> export function isEditDistanceNoGreaterThan(a: string, b: string, maxDist: number): boolean }
Sorry, something went wrong.
No branches or pull requests
Great library!
Would be nice, if you'd add some simple typings like:
The text was updated successfully, but these errors were encountered: