Skip to content

Commit 0d59885

Browse files
committed
Fix typing issue and properly export Bin
1 parent 9c315a8 commit 0d59885

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphmetrics/sketches-js",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "TypeScript implementation of DDSketch, a distributed quantile sketch algorithm ",
55
"license": "Apache-2.0",
66
"repository": "https://github.com/GraphMetrics/sketches-js",

src/ddsketch/DDSketch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Copyright 2021 GraphMetrics for modifications
66
*/
77

8-
import { DenseStore } from './store';
8+
import { Bin, DenseStore } from './store';
99
import { Mapping, LogarithmicMapping } from './mapping';
1010

1111
const DEFAULT_RELATIVE_ACCURACY = 0.01;
@@ -142,7 +142,7 @@ class BaseDDSketch {
142142
/*
143143
* Return an iterator on the bins
144144
*/
145-
bins() {
145+
bins(): IterableIterator<Bin> {
146146
return this.store.iterate();
147147
}
148148

src/ddsketch/store/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Copyright 2021 GraphMetrics for modifications
66
*/
77

8-
export { Store } from './types';
8+
export { Bin, Store } from './types';
99
export { DenseStore } from './DenseStore';
1010
export { CollapsingLowestDenseStore } from './CollapsingLowestDenseStore';
1111
export { CollapsingHighestDenseStore } from './CollapsingHighestDenseStore';

0 commit comments

Comments
 (0)