Skip to content

Commit 68ec74c

Browse files
committed
workaround for mssql types missed types
1 parent 3a72171 commit 68ec74c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import 'mssql';
2+
3+
// Because "@types/mssql": "^9.1.7" (latest as of Apr 2025) still doesn't have info about valueHandler
4+
declare module 'mssql' {
5+
namespace valueHandler {
6+
function set(
7+
type: any,
8+
handler: (value: unknown) => unknown
9+
): void;
10+
}
11+
12+
export const valueHandler: typeof valueHandler;
13+
}

packages/cubejs-mssql-driver/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
"outDir": "dist",
99
"rootDir": ".",
1010
"baseUrl": ".",
11+
"typeRoots": ["./node_modules/@types", "./src/types"]
1112
}
1213
}

0 commit comments

Comments
 (0)