@beenotung/tslib
Version:
utils library in Typescript
8 lines (7 loc) • 342 B
TypeScript
import { ArrayData } from './array-wrapper';
/**
* @description this can consume lot of memory, need to manually invoke edit_distance.clear() to free the caches
* */
export declare const edit_distance: (<A>(s: string | ArrayData<A> | A[], t: string | ArrayData<A> | A[], loop?: boolean | undefined) => number) & {
clear: () => void;
};