Skip to content

Commit

Permalink
Fix type definition for dimension.group() (square#102)
Browse files Browse the repository at this point in the history
* Fix type definition for dimension.group()

* Fix casing of word 'TKey'
  • Loading branch information
thatcort authored and esjewett committed Mar 22, 2018
1 parent d8971b4 commit 22b506e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ declare namespace crossfilter {
hasCurrentFilter(): boolean;
top(k: number, offset?: number): TRecord[];
bottom(k: number, offset?: number): TRecord[];
group<TGroupValue>(
groupValue?: (value: TValue) => NaturallyOrderedValue,
): Group<TRecord, TValue, TGroupValue>;
group<TKey extends NaturallyOrderedValue, TGroupValue extends NaturallyOrderedValue>(
groupValue?: (value: TValue) => TKey,
): Group<TRecord, TKey, TGroupValue>;
groupAll<TGroupValue>(): GroupAll<TRecord, TGroupValue>;
dispose(): Dimension<TRecord, TValue>;
accessor(record: TRecord): NaturallyOrderedValue;
Expand Down

0 comments on commit 22b506e

Please sign in to comment.