@vkontakte/videoplayer-shared 1.0.58-dev.ce524d87.0 → 1.0.58-dev.ef87de0a.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015.cjs.js +3 -3
- package/es2015.esm.js +3 -3
- package/es2018.cjs.js +3 -3
- package/es2018.esm.js +3 -3
- package/es2024.cjs.js +3 -3
- package/es2024.esm.js +3 -3
- package/esnext.cjs.js +3 -3
- package/esnext.esm.js +3 -3
- package/evergreen.esm.js +3 -3
- package/package.json +1 -1
- package/types/reactive/Subscription.d.ts +1 -1
- package/types/reactive/SubscriptionRemovable.d.ts +5 -0
- package/types/reactive/index.d.ts +1 -0
- package/types/utils/binarySearch.d.ts +10 -0
- package/types/utils/index.d.ts +1 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ISubscription, IUnsubscriber } from './types';
|
|
2
2
|
export default class Subscription implements ISubscription {
|
|
3
|
-
|
|
3
|
+
protected subscriptions: Array<(() => void) | ISubscription>;
|
|
4
4
|
unsubscribe(): void;
|
|
5
5
|
add(item: ISubscription | IUnsubscriber): ISubscription;
|
|
6
6
|
}
|
|
@@ -8,6 +8,7 @@ export { default as timeout } from './timeout';
|
|
|
8
8
|
export { default as interval } from './interval';
|
|
9
9
|
export { default as observableFrom } from './observableFrom';
|
|
10
10
|
export { default as fromEvent } from './fromEvent';
|
|
11
|
+
export { default as SubscriptionRemovable } from './SubscriptionRemovable';
|
|
11
12
|
export { default as buffer } from './operators/buffer';
|
|
12
13
|
export { default as debounce } from './operators/debounce';
|
|
13
14
|
export { default as throttle } from './operators/throttle';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Performs binary search on a sorted array using a comparison function
|
|
3
|
+
* @param sortedArray - The sorted array to search in
|
|
4
|
+
* @param compareFn - Function that returns:
|
|
5
|
+
* - 0 if the current element matches the target
|
|
6
|
+
* - negative if the current element is less than the target
|
|
7
|
+
* - positive if the current element is greater than the target
|
|
8
|
+
* @returns The index of the matching element if found, otherwise -1
|
|
9
|
+
*/
|
|
10
|
+
export declare const binarySearch: <T>(sortedArray: T[], compareFn: (element: T) => number) => number;
|
package/types/utils/index.d.ts
CHANGED