File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
packages/cubejs-server-core Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ declare module '@cubejs-backend/server-core' {
2
+ export function create ( options ?: CreateOptions ) : any ;
3
+
4
+ export function createDriver ( dbType : DatabaseType ) : DriverFactory ;
5
+
6
+ export interface CreateOptions {
7
+ apiSecret ?: string ;
8
+ basePath ?: string ;
9
+ checkAuthMiddleware ?: ( req : any , res : any , next : any ) => any ;
10
+ contextToAppId ?: any ;
11
+ devServer ?: boolean ;
12
+ dbType ?: DatabaseType ;
13
+ driverFactory ?: DriverFactory ;
14
+ externalDriverFactory ?: DriverFactory ;
15
+ logger ?: ( msg : string , params : any ) => void ;
16
+ orchestratorOptions ?: any ;
17
+ repositoryFactory ?: any ;
18
+ schemaPath ?: string ;
19
+ }
20
+
21
+ export interface DriverFactory {
22
+ }
23
+
24
+ export type DatabaseType = 'athena' | 'bigquery' | 'clickhouse' | 'jdbc' | 'mongobi' | 'mssql' | 'mysql' | 'postgres' | 'redshift' ;
25
+ }
Original file line number Diff line number Diff line change 10
10
"test" : " mocha"
11
11
},
12
12
"main" : " core/index.js" ,
13
+ "types" : " core/index.d.ts" ,
13
14
"files" : [
14
15
" core" ,
15
16
" playground"
You can’t perform that action at this time.
0 commit comments