Skip to content

Commit c58547e

Browse files
committed
fix types
1 parent 2ca2fe1 commit c58547e

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

lib/admin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { config } from "@ideal-postcodes/jsutil";
2+
import { Config } from "./extension";
23

34
import { bind as orders } from "./admin-orders";
45
import { bind as ordersEdit } from "./admin-orders-edit";
@@ -8,5 +9,5 @@ import { bind as custom } from "./admin-custom";
89
window.idpcStart = () =>
910
[orders, customers, ordersEdit, custom].forEach((bind) => {
1011
const conf = config();
11-
if (conf) bind(conf);
12+
if (conf) bind(conf as Config);
1213
});

lib/store.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { config } from "@ideal-postcodes/jsutil";
2+
import { Config } from "./extension";
23

34
import { bind as shipping } from "./shipping";
45
import { bind as billing } from "./billing";
@@ -9,6 +10,6 @@ import { bind as custom } from "./custom";
910
window.idpcStart = () => {
1011
[shipping, billing, customer, multishipping, custom].forEach((bind) => {
1112
const conf = config();
12-
if (conf) bind(conf);
13+
if (conf) bind(conf as Config);
1314
});
1415
};

view/base/web/admin.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

view/base/web/binding.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)