Skip to content

Commit f4ea839

Browse files
authored
fix: typings export (#373) Thanks to @lvauvillier!
* fix: typings export * fix: wrong dateRange type
1 parent 45c7b83 commit f4ea839

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { BigQueryOptions } from "@google-cloud/bigquery";
22

33
declare module "@cubejs-backend/bigquery-driver" {
4-
class BigQueryDriver {
4+
export default class BigQueryDriver {
55
constructor(options?: BigQueryOptions);
66
}
7-
export = BigQueryDriver;
87
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { PoolConfig } from "pg";
22

33
declare module "@cubejs-backend/postgres-driver" {
4-
class PostgresDriver {
4+
export default class PostgresDriver {
55
constructor(options?: PoolConfig);
66
}
7-
export = PostgresDriver;
87
}

packages/cubejs-postgres-driver/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
},
2424
"license": "Apache-2.0",
2525
"devDependencies": {
26+
"@types/pg": "^7.14.1",
2627
"eslint": "^5.16.0",
2728
"eslint-config-airbnb-base": "^13.1.0",
2829
"eslint-plugin-import": "^2.16.0",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ declare module "@cubejs-backend/server-core" {
128128

129129
export interface QueryTimeDimension {
130130
dimension: string;
131-
dateRange?: string[];
131+
dateRange?: string[] | string;
132132
granularity?: QueryTimeDimensionGranularity;
133133
}
134134

packages/cubejs-sqlite-driver/driver/index.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ declare module "@cubejs-backend/sqlite-driver" {
33
database: string;
44
}
55

6-
class SqliteDriver {
6+
export default class SqliteDriver {
77
constructor(options?: SqliteOptions);
88
}
9-
export = SqliteDriver;
109
}

0 commit comments

Comments
 (0)