Skip to content

Commit 364d9bf

Browse files
committed
feat: add postgres-driver typings
1 parent 0c5e0f7 commit 364d9bf

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { PoolConfig } from "pg";
2+
3+
declare module "@cubejs-backend/postgres-driver" {
4+
class PostgresDriver {
5+
constructor(options?: PoolConfig);
6+
}
7+
export = PostgresDriver;
8+
}

packages/cubejs-postgres-driver/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"node": ">=8.11.1"
1313
},
1414
"main": "driver/PostgresDriver.js",
15+
"typings": "driver/index.d.ts",
1516
"scripts": {
1617
"lint": "eslint **/*.js"
1718
},

0 commit comments

Comments
 (0)