Skip to content

Commit 0a08e65

Browse files
committed
MC-5691: Implement better developer error reporting
- Resolve issues with interface imports
1 parent 828b488 commit 0a08e65

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/content-type-move-params.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* See COPYING.txt for license details.
44
*/
55
import ContentTypeInterface from "./content-type";
6-
import ContentTypeCollectionInterface from "./content-type-collection";
6+
import ContentTypeCollectionInterface from "./content-type-collection.d";
77

88
/**
99
* @api

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/content-type/content-type-redraw-after-event-params.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* See COPYING.txt for license details.
44
*/
55

6-
import ContentTypeCollectionInterface from "../content-type-collection";
6+
import ContentTypeCollectionInterface from "../content-type-collection.d";
77
import ContentTypeInterface from "../content-type";
88

99
/**

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/drag-drop/sortable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import $ from "jquery";
77
import ko from "knockout";
88
import events from "Magento_PageBuilder/js/events";
99
import ContentTypeInterface from "../content-type";
10-
import ContentTypeCollectionInterface from "../content-type-collection";
10+
import ContentTypeCollectionInterface from "../content-type-collection.d";
1111
import createContentType from "../content-type-factory";
1212
import Preview from "../content-type/preview";
1313
import Stage from "../stage";

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/stage-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import loadReader from "Magento_PageBuilder/js/utils/loader";
99
import alertDialog from "Magento_Ui/js/modal/alert";
1010
import * as _ from "underscore";
1111
import Config from "./config";
12-
import ContentTypeCollectionInterface from "./content-type-collection";
12+
import ContentTypeCollectionInterface from "./content-type-collection.d";
1313
import ContentTypeConfigInterface from "./content-type-config.d";
1414
import createContentType from "./content-type-factory";
1515
import ContentTypeInterface from "./content-type.d";

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/stage.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import alertDialog from "Magento_Ui/js/modal/alert";
1111
import _ from "underscore";
1212
import "./binding/sortable";
1313
import Collection from "./collection";
14-
import ContentTypeCollectionInterface from "./content-type-collection";
14+
import ContentTypeCollectionInterface from "./content-type-collection.d";
1515
import ContentTypeConfigInterface from "./content-type-config";
1616
import ContentTypeRemovedParamsInterface from "./content-type-removed-params.d";
1717
import ContentTypeInterface from "./content-type.d";
@@ -122,9 +122,9 @@ export default class Stage {
122122
/**
123123
* Return the children of the current element
124124
*
125-
* @returns {KnockoutObservableArray<ContentTypeInterface>}
125+
* @returns {KnockoutObservableArray<ContentTypeInterface | ContentTypeCollectionInterface>}
126126
*/
127-
public getChildren(): KnockoutObservableArray<ContentTypeCollectionInterface> {
127+
public getChildren() {
128128
return this.collection.getChildren();
129129
}
130130

0 commit comments

Comments
 (0)