mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-26 11:12:19 +08:00
string score definitions
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
/// <reference path="string_score.d.ts" />
|
||||
|
||||
import string_score = require('string_score');
|
||||
|
||||
var a = 'abc';
|
||||
var b = 'xyz';
|
||||
|
||||
console.log(a.score(b).toString());
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// Type definitions for url-template 0.1.22
|
||||
// Project: https://github.com/joshaven/string_score
|
||||
// Definitions by: Marcin Porębski <https://github.com/marcinporebski/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
interface String {
|
||||
score: (word: string, fuzzy?: number) => number;
|
||||
}
|
||||
Reference in New Issue
Block a user