This commit is contained in:
Jan Prochazka 2020-03-02 21:01:47 +01:00
parent e903122c52
commit a45c99e40f
3 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
import types from "@dbgate/types";
export function getDriver(
export default function getDriver(
connection: string | { engine: string }
): types.EngineDriver;

View File

@ -9,7 +9,6 @@ const drivers = {
postgres
};
/** @type {import('@dbgate/types').EngineDriver} */
function getDriver(connection) {
if (_.isString(connection)) {
return drivers[connection];

View File

@ -4,7 +4,9 @@
"allowJs": true,
"checkJs": true,
"noEmit": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"moduleResolution": "node",
"lib": [
"dom",
"dom.iterable",