mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-23 04:11:06 +07:00
22 lines
417 B
TypeScript
22 lines
417 B
TypeScript
|
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;
|