mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 14:06:00 +00:00
tscheck - in tsconfig.json
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "nodemon src/index.js",
|
"start": "nodemon src/index.js",
|
||||||
"tscheck": "tsc --allowJs --noEmit src/index.js"
|
"ts": "tsc"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"nodemon": "^2.0.2",
|
"nodemon": "^2.0.2",
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
// @ts-check
|
|
||||||
|
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { fork } = require('child_process');
|
const { fork } = require('child_process');
|
||||||
// @ts-ignore
|
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const nedb = require('nedb-promises');
|
const nedb = require('nedb-promises');
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
const connections = require('./connections');
|
const connections = require('./connections');
|
||||||
const socket = require('../utility/socket');
|
const socket = require('../utility/socket');
|
||||||
const { fork } = require('child_process');
|
const { fork } = require('child_process');
|
||||||
@@ -27,6 +28,7 @@ module.exports = {
|
|||||||
connection,
|
connection,
|
||||||
};
|
};
|
||||||
this.opened.push(newOpened);
|
this.opened.push(newOpened);
|
||||||
|
// @ts-ignore
|
||||||
subprocess.on('message', ({ msgtype, ...message }) => {
|
subprocess.on('message', ({ msgtype, ...message }) => {
|
||||||
this[`handle_${msgtype}`](id, message);
|
this[`handle_${msgtype}`](id, message);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
|
|
||||||
class DatabaseAnalyser {
|
class DatabaseAnalyser {
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
|
|
||||||
const fs = require('fs-extra');
|
const fs = require('fs-extra');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
const mssql = require('mssql');
|
const mssql = require('mssql');
|
||||||
|
const MsSqlAnalyser = require('./MsSqlAnalyser');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
async connect({ server, port, user, password }) {
|
async connect({ server, port, user, password }) {
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
|
|
||||||
const os = require('os');
|
const os = require('os');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const fs = require('fs-extra');
|
const fs = require('fs-extra');
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
|
|
||||||
let socket = null;
|
let socket = null;
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
|
|
||||||
// @ts-ignore
|
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const express = require('express');
|
const express = require('express');
|
||||||
|
|
||||||
|
|||||||
14
api/tsconfig.json
Normal file
14
api/tsconfig.json
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"module": "commonjs",
|
||||||
|
"allowJs": true,
|
||||||
|
"checkJs": true,
|
||||||
|
"noEmit": true
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"src/index.js",
|
||||||
|
"src/engines/mssql/index.js",
|
||||||
|
"src/engines/mysql/index.js",
|
||||||
|
"src/engines/postgres/index.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user