Skip to content

Commit cd5dbd7

Browse files
committed
fix list binarySearch interface
1 parent 177c7cf commit cd5dbd7

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

build/multiplex.d.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,9 +559,9 @@ declare module mx {
559559
* that is the bitwise complement of the index of the next element that is larger than item or, if there is no larger element,
560560
* the bitwise complement of List.count().
561561
* @param item The object to locate. The value can be null for reference types.
562-
* @param index The zero-based starting index of the range to search.
562+
* @param comparer The Comparer implementation to use when comparing elements.
563563
*/
564-
binarySearch(item: T, index: number): number
564+
binarySearch(item: T, comparer: Comparer<T>): number
565565

566566

567567
/**
@@ -571,9 +571,10 @@ declare module mx {
571571
* the bitwise complement of List.count().
572572
* @param item The object to locate. The value can be null for reference types.
573573
* @param index The zero-based starting index of the range to search.
574+
* @param count The length of the range to search.
574575
* @param comparer The Comparer implementation to use when comparing elements.
575576
*/
576-
binarySearch(item: T, index: number, comparer: Comparer<T>): number
577+
binarySearch(item: T, index: number, count: number, comparer: Comparer<T>): number
577578

578579

579580
/**

src/typescript/multiplex.d.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,9 +559,9 @@ declare module mx {
559559
* that is the bitwise complement of the index of the next element that is larger than item or, if there is no larger element,
560560
* the bitwise complement of List.count().
561561
* @param item The object to locate. The value can be null for reference types.
562-
* @param index The zero-based starting index of the range to search.
562+
* @param comparer The Comparer implementation to use when comparing elements.
563563
*/
564-
binarySearch(item: T, index: number): number
564+
binarySearch(item: T, comparer: Comparer<T>): number
565565

566566

567567
/**
@@ -571,9 +571,10 @@ declare module mx {
571571
* the bitwise complement of List.count().
572572
* @param item The object to locate. The value can be null for reference types.
573573
* @param index The zero-based starting index of the range to search.
574+
* @param count The length of the range to search.
574575
* @param comparer The Comparer implementation to use when comparing elements.
575576
*/
576-
binarySearch(item: T, index: number, comparer: Comparer<T>): number
577+
binarySearch(item: T, index: number, count: number, comparer: Comparer<T>): number
577578

578579

579580
/**

0 commit comments

Comments
 (0)