Skip to content

Commit

Permalink
fix(cubejs-client-core): enums exported from declaration files are no…
Browse files Browse the repository at this point in the history
…t accessible (#810)
  • Loading branch information
vasilev-alex committed Jul 8, 2020
1 parent ab9776f commit 3396fbe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
18 changes: 5 additions & 13 deletions docs/Cube.js-Frontend/@cubejs-client-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -692,18 +692,6 @@ Name | Type |
method | string |
params | any |

## TimeDimensionGranularities

**DAY** = "day"

**HOUR** = "hour"

**MONTH** = "month"

**WEEK** = "week"

**YEAR** = "year"

## Annotation

Name | Type |
Expand Down Expand Up @@ -939,7 +927,11 @@ Name | Type |
------ | ------ |
dateRange? | string | string[] |
dimension | string |
granularity? | [TimeDimensionGranularities](#time-dimension-granularities) |
granularity? | [TimeDimensionGranularity](#time-dimension-granularity) |

## TimeDimensionGranularity

Ƭ **TimeDimensionGranularity**: *"hour" | "day" | "week" | "month" | "year"*

## TransportOptions

Expand Down
10 changes: 2 additions & 8 deletions packages/cubejs-client-core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -550,18 +550,12 @@ declare module '@cubejs-client/core' {
values?: string[];
};

export enum TimeDimensionGranularities {
HOUR = 'hour',
DAY = 'day',
WEEK = 'week',
MONTH = 'month',
YEAR = 'year',
}
type TimeDimensionGranularity = 'hour' | 'day' | 'week' | 'month' | 'year';

export type TimeDimension = {
dimension: string;
dateRange?: string | string[];
granularity?: TimeDimensionGranularities;
granularity?: TimeDimensionGranularity;
};

export type Query = {
Expand Down

0 comments on commit 3396fbe

Please sign in to comment.