Skip to content

Commit

Permalink
Fix typing issue and properly export Bin
Browse files Browse the repository at this point in the history
  • Loading branch information
Sytten committed Feb 4, 2021
1 parent 9c315a8 commit 0d59885
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphmetrics/sketches-js",
"version": "0.2.0",
"version": "0.2.1",
"description": "TypeScript implementation of DDSketch, a distributed quantile sketch algorithm ",
"license": "Apache-2.0",
"repository": "https://github.com/GraphMetrics/sketches-js",
Expand Down
4 changes: 2 additions & 2 deletions src/ddsketch/DDSketch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Copyright 2021 GraphMetrics for modifications
*/

import { DenseStore } from './store';
import { Bin, DenseStore } from './store';
import { Mapping, LogarithmicMapping } from './mapping';

const DEFAULT_RELATIVE_ACCURACY = 0.01;
Expand Down Expand Up @@ -142,7 +142,7 @@ class BaseDDSketch {
/*
* Return an iterator on the bins
*/
bins() {
bins(): IterableIterator<Bin> {
return this.store.iterate();
}

Expand Down
2 changes: 1 addition & 1 deletion src/ddsketch/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Copyright 2021 GraphMetrics for modifications
*/

export { Store } from './types';
export { Bin, Store } from './types';
export { DenseStore } from './DenseStore';
export { CollapsingLowestDenseStore } from './CollapsingLowestDenseStore';
export { CollapsingHighestDenseStore } from './CollapsingHighestDenseStore';

0 comments on commit 0d59885

Please sign in to comment.