Skip to content

Commit

Permalink
fix(@cubejs-core): Add type definition for compareDateRange, fix cube…
Browse files Browse the repository at this point in the history
  • Loading branch information
cbroome committed Dec 16, 2020
1 parent bee3444 commit 6ae0b8d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/cubejs-client-core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -455,11 +455,11 @@ declare module '@cubejs-client/core' {
* { "x":"2015-03-01T00:00:00", "Stories.count": 29661, "xValues": ["2015-03-01T00:00:00"] },
* //...
* ]
*
*
* ```
* When using `chartPivot()` or `seriesNames()`, you can pass `aliasSeries` in the [pivotConfig](#types-pivot-config)
* to give each series a unique prefix. This is useful for `blending queries` which use the same measure multiple times.
*
*
* ```js
* // For the queries
* {
Expand Down Expand Up @@ -489,7 +489,7 @@ declare module '@cubejs-client/core' {
* },
* ],
* },
*
*
* // ResultSet.chartPivot({ aliasSeries: ['one', 'two'] }) will return
* [
* {
Expand Down Expand Up @@ -684,6 +684,7 @@ declare module '@cubejs-client/core' {
dimension: string;
dateRange?: string | string[];
granularity?: TimeDimensionGranularity;
compareDateRange?: string[][];
};

export type Query = {
Expand Down

0 comments on commit 6ae0b8d

Please sign in to comment.