From fc93399f76333fe04346e4ea0cd7cdcfcb92c496 Mon Sep 17 00:00:00 2001 From: DominikIwanek Date: Wed, 16 Apr 2025 10:32:15 +0200 Subject: [PATCH] Upgrade TS --- lib/js-api/src/alfrescoApi.ts | 4 ++-- package-lock.json | 22 ++++++++++++++++++---- package.json | 2 +- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/lib/js-api/src/alfrescoApi.ts b/lib/js-api/src/alfrescoApi.ts index 53cb5b4c22..d049655ddc 100644 --- a/lib/js-api/src/alfrescoApi.ts +++ b/lib/js-api/src/alfrescoApi.ts @@ -436,8 +436,8 @@ export class AlfrescoApi implements Emitter, AlfrescoApiType { if (this.isEcmConfiguration()) { const contentPromise = this.contentAuth.logout(); contentPromise.then( - () => (this.config.ticket = undefined), - () => {} + (): void => (this.config.ticket = undefined), + (): void => {} ); return contentPromise; } diff --git a/package-lock.json b/package-lock.json index a361e248f3..c6de7335e0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -157,7 +157,7 @@ "stylelint-config-standard-scss": "^13.1.0", "ts-node": "^10.9.2", "tsconfig-paths": "^4.1.1", - "typescript": "5.7.3", + "typescript": "5.8.2", "webdriver-manager": "12.1.9", "webpack": "5.98.0", "webpack-cli": "^5.1.4" @@ -8055,6 +8055,20 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/@nx/eslint/node_modules/typescript": { + "version": "5.7.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz", + "integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, "node_modules/@nx/jest": { "version": "20.8.0", "resolved": "https://registry.npmjs.org/@nx/jest/-/jest-20.8.0.tgz", @@ -34954,9 +34968,9 @@ "license": "MIT" }, "node_modules/typescript": { - "version": "5.7.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz", - "integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==", + "version": "5.8.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz", + "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==", "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", diff --git a/package.json b/package.json index 4c84c79b41..8831fc5d66 100644 --- a/package.json +++ b/package.json @@ -177,7 +177,7 @@ "stylelint-config-standard-scss": "^13.1.0", "ts-node": "^10.9.2", "tsconfig-paths": "^4.1.1", - "typescript": "5.7.3", + "typescript": "5.8.2", "webdriver-manager": "12.1.9", "webpack": "5.98.0", "webpack-cli": "^5.1.4"