Merge pull request #23502 from narainsagar/fix-fuzzyset-types

[fuzzyset] - Make sure optional params remain optional
This commit is contained in:
Daniel Rosenwasser
2018-02-11 15:09:17 -08:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
// Type definitions for fuzzyset.js 0.0
// Project: https://github.com/Glench/fuzzyset.js
// Definitions by: Louis Grignon <https://github.com/lgrignon>
// Narain Sagar <https://github.com/narainsagar>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@@ -13,7 +14,7 @@ interface FuzzySet {
}
declare function FuzzySet(
source: string[],
source?: string[],
useLevenshtein?: boolean,
gramSizeLower?: number,
gramSizeUpper?: number,

View File

@@ -1,6 +1,7 @@
// Type definitions for fuzzset 1.0
// Project: https://github.com/washt/fuzzyset
// Definitions by: Louis Grignon <https://github.com/lgrignon>
// Narain Sagar <https://github.com/narainsagar>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface FuzzySet {
@@ -11,7 +12,7 @@ interface FuzzySet {
values(): string[];
}
declare function FuzzySet(source: string[], useLevenshtein?: boolean, gramSizeLower?: number, gramSizeUpper?: number): FuzzySet;
declare function FuzzySet(source?: string[], useLevenshtein?: boolean, gramSizeLower?: number, gramSizeUpper?: number): FuzzySet;
export = FuzzySet;
export as namespace FuzzySet;