mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
ts fix
This commit is contained in:
parent
e903122c52
commit
a45c99e40f
2
packages/engines/index.d.ts
vendored
2
packages/engines/index.d.ts
vendored
@ -1,5 +1,5 @@
|
||||
import types from "@dbgate/types";
|
||||
|
||||
export function getDriver(
|
||||
export default function getDriver(
|
||||
connection: string | { engine: string }
|
||||
): types.EngineDriver;
|
||||
|
@ -9,7 +9,6 @@ const drivers = {
|
||||
postgres
|
||||
};
|
||||
|
||||
/** @type {import('@dbgate/types').EngineDriver} */
|
||||
function getDriver(connection) {
|
||||
if (_.isString(connection)) {
|
||||
return drivers[connection];
|
||||
|
@ -4,7 +4,9 @@
|
||||
"allowJs": true,
|
||||
"checkJs": true,
|
||||
"noEmit": true,
|
||||
"moduleResolution": "node",
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"esModuleInterop": true,
|
||||
"moduleResolution": "node",
|
||||
"lib": [
|
||||
"dom",
|
||||
"dom.iterable",
|
||||
|
Loading…
Reference in New Issue
Block a user