mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-06 17:29:08 +00:00
Merge pull request #23502 from narainsagar/fix-fuzzyset-types
[fuzzyset] - Make sure optional params remain optional
This commit is contained in:
3
types/fuzzyset.js/index.d.ts
vendored
3
types/fuzzyset.js/index.d.ts
vendored
@@ -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,
|
||||
|
||||
3
types/fuzzyset/index.d.ts
vendored
3
types/fuzzyset/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user