File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/converter/style Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ export default class Margins implements ConverterInterface {
37
37
* @returns {string | object }
38
38
*/
39
39
public toDom ( name : string , data : DataObject ) : string | object {
40
- const result = { } ;
40
+ const result : {
41
+ [ key : string ] : string ;
42
+ } = { } ;
41
43
let value = data [ name ] ;
42
44
if ( value && typeof value === "string" ) {
43
45
value = JSON . parse ( value ) ;
Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ export default class Paddings implements ConverterInterface {
37
37
* @returns {string | object }
38
38
*/
39
39
public toDom ( name : string , data : DataObject ) : string | object {
40
- const result = { } ;
40
+ const result : {
41
+ [ key : string ] : string ;
42
+ } = { } ;
41
43
let value = data [ name ] ;
42
44
if ( value && typeof value === "string" ) {
43
45
value = JSON . parse ( value ) ;
You can’t perform that action at this time.
0 commit comments