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