@beenotung/tslib
Version:
utils library in Typescript
9 lines (8 loc) • 415 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: ArrayData<A> | A[] | string, t: ArrayData<A> | A[] | string, loop?: boolean) => number) & {
clear: () => void;
cache: import("./map-map").MapMap<number, import("./map-map").MapMap<any, any>>;
};