mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-19 06:00:30 +00:00
Improve definition of .get
This commit is contained in:
Vendored
+2
-1
@@ -4,7 +4,8 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
interface FuzzySet {
|
||||
get(candidate: string): Array<[number, string]>;
|
||||
get(candidate: string, defaultValue?: string, minScore?: number): Array<[number, string]> | undefined;
|
||||
get(candidate: string, minScore?: number): Array<[number, string]> | undefined;
|
||||
add(value: string): boolean;
|
||||
length(): number;
|
||||
isEmpty(): boolean;
|
||||
|
||||
Reference in New Issue
Block a user