Skip to content

Commit 3396fbe

Browse files
authored
fix(cubejs-client-core): enums exported from declaration files are not accessible (#810)
1 parent ab9776f commit 3396fbe

File tree

2 files changed

+7
-21
lines changed

2 files changed

+7
-21
lines changed

docs/Cube.js-Frontend/@cubejs-client-core.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -692,18 +692,6 @@ Name | Type |
692692
method | string |
693693
params | any |
694694

695-
## TimeDimensionGranularities
696-
697-
**DAY** = "day"
698-
699-
**HOUR** = "hour"
700-
701-
**MONTH** = "month"
702-
703-
**WEEK** = "week"
704-
705-
**YEAR** = "year"
706-
707695
## Annotation
708696

709697
Name | Type |
@@ -939,7 +927,11 @@ Name | Type |
939927
------ | ------ |
940928
dateRange? | string | string[] |
941929
dimension | string |
942-
granularity? | [TimeDimensionGranularities](#time-dimension-granularities) |
930+
granularity? | [TimeDimensionGranularity](#time-dimension-granularity) |
931+
932+
## TimeDimensionGranularity
933+
934+
Ƭ **TimeDimensionGranularity**: *"hour" | "day" | "week" | "month" | "year"*
943935

944936
## TransportOptions
945937

packages/cubejs-client-core/index.d.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -550,18 +550,12 @@ declare module '@cubejs-client/core' {
550550
values?: string[];
551551
};
552552

553-
export enum TimeDimensionGranularities {
554-
HOUR = 'hour',
555-
DAY = 'day',
556-
WEEK = 'week',
557-
MONTH = 'month',
558-
YEAR = 'year',
559-
}
553+
type TimeDimensionGranularity = 'hour' | 'day' | 'week' | 'month' | 'year';
560554

561555
export type TimeDimension = {
562556
dimension: string;
563557
dateRange?: string | string[];
564-
granularity?: TimeDimensionGranularities;
558+
granularity?: TimeDimensionGranularity;
565559
};
566560

567561
export type Query = {

0 commit comments

Comments
 (0)