Commit 0bf69670 authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Benjamin Franzke
Browse files

[TASK] Upgrade to TypeScript 3.6

After shedding tears, blood and sacrificing brain cells and CPU time, we
finally managed to upgrade the code base to a recent TypeScript version.

With this patch, our code is compiled with TypeScript 3.6, which has
been added by the following command:

  yarn add --dev typescript@~3.6.2

Resolves: #89104
Releases: master
Change-Id: I023ba89b4d4d8d98394d046c53db7fa64c12d44c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61637

Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Benjamin Franzke's avatarBenjamin Franzke <bfr@qbus.de>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Benjamin Franzke's avatarBenjamin Franzke <bfr@qbus.de>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
parent 6f873476
......@@ -132,7 +132,7 @@ class ContextHelp {
cshWindow.focus();
Popover.hide($trigger);
return cshWindow;
} catch (e) {
} catch {
// do nothing
}
}
......
......@@ -479,7 +479,7 @@ try {
if (top && top.TYPO3 && top.TYPO3.LoginRefresh) {
loginRefreshObject = top.TYPO3.LoginRefresh;
}
} catch (e) {
} catch {
// This only happens if the opener, parent or top is some other url (eg a local file)
// which loaded the current window. Then the browser's cross domain policy jumps in
// and raises an exception.
......
......@@ -496,7 +496,7 @@ try {
top.TYPO3.Modal.initializeMarkupTrigger(document);
modalObject = top.TYPO3.Modal;
}
} catch (e) {
} catch {
// This only happens if the opener, parent or top is some other url (eg a local file)
// which loaded the current window. Then the browser's cross domain policy jumps in
// and raises an exception.
......
......@@ -232,7 +232,7 @@ try {
if (top && top.TYPO3.Notification) {
notificationObject = top.TYPO3.Notification;
}
} catch (e) {
} catch {
// This only happens if the opener, parent or top is some other url (eg a local file)
// which loaded the current window. Then the browser's cross domain policy jumps in
// and raises an exception.
......
......@@ -71,7 +71,7 @@ try {
if (top && top.TYPO3 && top.TYPO3.Severity) {
severityObject = top.TYPO3.Severity;
}
} catch (e) {
} catch {
// This only happens if the opener, parent or top is some other url (eg a local file)
// which loaded the current window. Then the browser's cross domain policy jumps in
// and raises an exception.
......
......@@ -308,7 +308,7 @@ try {
if (top && top.TYPO3 && top.TYPO3.Wizard) {
wizardObject = top.TYPO3.Wizard;
}
} catch (e) {
} catch {
// This only happens if the opener, parent or top is some other url (eg a local file)
// which loaded the current window. Then the browser's cross domain policy jumps in
// and raises an exception.
......
......@@ -80,7 +80,7 @@
"taboverride": "^4.0.3",
"tagsort": "1.4.0",
"tslint": "^5.10.0",
"typescript": "~2.4.0"
"typescript": "~3.6.2"
},
"scripts": {
"build-css": "./node_modules/.bin/grunt css",
......
......@@ -5,7 +5,10 @@
"dom",
"scripthost",
"es6",
"es7"
"es7",
"es2017",
"es2018",
"es2019"
],
"module": "amd",
"sourceMap": false,
......
......@@ -8988,10 +8988,10 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
typescript@~2.4.0:
version "2.4.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.4.2.tgz#f8395f85d459276067c988aa41837a8f82870844"
integrity sha1-+DlfhdRZJ2BnyYiqQYN6j4KHCEQ=
typescript@~3.6.2:
version "3.6.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.6.2.tgz#105b0f1934119dde543ac8eb71af3a91009efe54"
integrity sha512-lmQ4L+J6mnu3xweP8+rOrUwzmN+MRAj7TgtJtDaXE5PMyX2kCrklhg3rvOsOIfNeAWMQWO2F1GPc1kMD2vLAfw==
uglify-js@^2.6:
version "2.8.29"
......
......@@ -10,4 +10,4 @@
*
* The TYPO3 project - inspiring people to share!
*/
var __awaiter=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))(function(c,r){function a(t){try{o(i.next(t))}catch(t){r(t)}}function u(t){try{o(i.throw(t))}catch(t){r(t)}}function o(t){t.done?c(t.value):new n(function(e){e(t.value)}).then(a,u)}o((i=i.apply(t,e||[])).next())})};define(["require","exports","./AbstractAction","../Icons"],function(t,e,n,i){"use strict";return class extends n.AbstractAction{execute(t){return __awaiter(this,void 0,void 0,function*(){return i.getIcon("spinner-circle-light",i.sizes.small).then(e=>{t.innerHTML=e}),yield this.executeCallback()})}executeCallback(){return __awaiter(this,void 0,void 0,function*(){return yield this.callback()})}}});
\ No newline at end of file
var __awaiter=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))(function(c,r){function a(t){try{u(i.next(t))}catch(t){r(t)}}function o(t){try{u(i.throw(t))}catch(t){r(t)}}function u(t){var e;t.done?c(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,o)}u((i=i.apply(t,e||[])).next())})};define(["require","exports","./AbstractAction","../Icons"],function(t,e,n,i){"use strict";return class extends n.AbstractAction{execute(t){return __awaiter(this,void 0,void 0,function*(){return i.getIcon("spinner-circle-light",i.sizes.small).then(e=>{t.innerHTML=e}),yield this.executeCallback()})}executeCallback(){return __awaiter(this,void 0,void 0,function*(){return yield this.callback()})}}});
\ No newline at end of file
......@@ -10,4 +10,4 @@
*
* The TYPO3 project - inspiring people to share!
*/
var __awaiter=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(c,i){function a(t){try{o(r.next(t))}catch(t){i(t)}}function u(t){try{o(r.throw(t))}catch(t){i(t)}}function o(t){t.done?c(t.value):new n(function(e){e(t.value)}).then(a,u)}o((r=r.apply(t,e||[])).next())})};define(["require","exports","./AbstractAction"],function(t,e,n){"use strict";return class extends n.AbstractAction{execute(t){return this.executeCallback()}executeCallback(){return __awaiter(this,void 0,void 0,function*(){return Promise.resolve(this.callback())})}}});
\ No newline at end of file
var __awaiter=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(c,i){function a(t){try{o(r.next(t))}catch(t){i(t)}}function u(t){try{o(r.throw(t))}catch(t){i(t)}}function o(t){var e;t.done?c(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,u)}o((r=r.apply(t,e||[])).next())})};define(["require","exports","./AbstractAction"],function(t,e,n){"use strict";return class extends n.AbstractAction{execute(t){return this.executeCallback()}executeCallback(){return __awaiter(this,void 0,void 0,function*(){return Promise.resolve(this.callback())})}}});
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment