diff --git a/packages/cubejs-client-core/index.d.ts b/packages/cubejs-client-core/index.d.ts index 1483af07dfb61..ff2ce184decdc 100644 --- a/packages/cubejs-client-core/index.d.ts +++ b/packages/cubejs-client-core/index.d.ts @@ -943,10 +943,19 @@ declare module '@cubejs-client/core' { format?: 'currency' | 'percent'; }; - export type TCubeDimension = BaseCubeMember & { + export type TCubeTimeDimensionGranularity = { + name: string; + title: string; + } + + export type BaseCubeDimension = BaseCubeMember & { primaryKey?: boolean; suggestFilterValues: boolean; - }; + } + + export type TCubeDimension = + BaseCubeDimension & { type: 'number' | 'string' | 'boolean' } | + BaseCubeDimension & { type: 'time'; granularities?: TCubeTimeDimensionGranularity[] } export type TCubeSegment = Omit;