Files
storage-service-ui/node_modules/levenary/index.d.ts
2020-07-05 09:07:36 +03:00

16 lines
322 B
TypeScript

declare module "levenary" {
/**
Return the string within `array`, whose Levenshtein distance from `str` is minimal.
@example
```
import levenary from 'levenary';
levenary('cat', ['cow', 'dog', 'pig']);
//=> 'cow'
```
*/
const levenary: (str: string, array: string[]) => string;
export default levenary;
}