diff --git a/lib/knex-builder/Knex.js b/lib/knex-builder/Knex.js index 70984a1757..4221e6f1ad 100644 --- a/lib/knex-builder/Knex.js +++ b/lib/knex-builder/Knex.js @@ -38,16 +38,17 @@ knex.SchemaBuilder = { }, }; -(knex.Raw = { +knex.Raw = { extend: function (methodName, fn) { SchemaBuilder.extend(methodName, fn); }, -}), - (knex.ViewBuilder = { - extend: function (methodName, fn) { - ViewBuilder.extend(methodName, fn); - }, - }); +}; + +knex.ViewBuilder = { + extend: function (methodName, fn) { + ViewBuilder.extend(methodName, fn); + }, +}; knex.ColumnBuilder = { extend: function (methodName, fn) { diff --git a/package.json b/package.json index 0ad8923977..2e6414ad06 100644 --- a/package.json +++ b/package.json @@ -106,8 +106,8 @@ "*.js": "eslint --cache --fix" }, "devDependencies": { - "@tsconfig/recommended": "^1.0.1", - "@types/node": "^20.4.0", + "@tsconfig/recommended": "^1.0.3", + "@types/node": "^20.8.9", "better-sqlite3": "^9.0.0", "chai": "^4.3.6", "chai-as-promised": "^7.1.1", @@ -115,7 +115,7 @@ "cli-testlab": "^2.2.0", "coveralls": "^3.1.1", "cross-env": "^7.0.3", - "dtslint": "4.2.1", + "dtslint": "^4.2.1", "eslint-config-prettier": "^8.6.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-mocha-no-only": "^1.1.1", @@ -144,7 +144,7 @@ "toxiproxy-node-client": "^2.0.6", "ts-node": "^10.9.1", "tsd": "^0.28.1", - "typescript": "5.0.4" + "typescript": "^5.2.2" }, "buildDependencies": [ "rimraf" diff --git a/tsconfig.json b/tsconfig.json index ed7ac22d43..829809651c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,6 +7,7 @@ "moduleResolution": "node", "declaration": false, "rootDirs": ["lib"], + "types": ["node"], "importHelpers": false, "sourceMap": true, "baseUrl": "."