Project

General

Profile

Actions

Task #92064

closed

Use named export of MessageUtility in Scheduler.ts

Added by Benjamin Franzke over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend JavaScript
Target version:
Start date:
2020-08-21
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

import = require('…') should only be used when the required module exports via the respective export = instruction.

As MessageUtility exports only one named export (called `MessageUtility`), we should import via ES6 named import syntax.

Note: Technically (in the generated source) this change makes no difference, as the named export was available as property, and therefore `import = ` worked.

Therefore there will be no changes required to the generated source codes.

Actions

Also available in: Atom PDF