Skip to content

Commit 5054519

Browse files
committed
MC-3095: Display TypeScript errors within local build process
- Resolve issue with paddings & margins toDom types
1 parent 07d6c6c commit 5054519

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/converter/style/margins.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ export default class Margins implements ConverterInterface {
3737
* @returns {string | object}
3838
*/
3939
public toDom(name: string, data: DataObject): string | object {
40-
const result = {};
40+
const result: {
41+
[key: string]: string;
42+
} = {};
4143
let value = data[name];
4244
if (value && typeof value === "string") {
4345
value = JSON.parse(value);

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/converter/style/paddings.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ export default class Paddings implements ConverterInterface {
3737
* @returns {string | object}
3838
*/
3939
public toDom(name: string, data: DataObject): string | object {
40-
const result = {};
40+
const result: {
41+
[key: string]: string;
42+
} = {};
4143
let value = data[name];
4244
if (value && typeof value === "string") {
4345
value = JSON.parse(value);

0 commit comments

Comments
 (0)