You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
417 B
22 lines
417 B
1 month ago
|
declare const leven: {
|
||
|
/**
|
||
|
Measure the difference between two strings.
|
||
|
|
||
|
@example
|
||
|
```
|
||
|
import leven = require('leven');
|
||
|
|
||
|
leven('cat', 'cow');
|
||
|
//=> 2
|
||
|
```
|
||
|
*/
|
||
|
(left: string, right: string): number;
|
||
|
|
||
|
// TODO: Remove this for the next major release, refactor the whole definition to:
|
||
|
// declare function leven(left: string, right: string): number;
|
||
|
// export = leven;
|
||
|
default: typeof leven;
|
||
|
};
|
||
|
|
||
|
export = leven;
|