Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
mfilip committed Jun 24, 2024
1 parent 2ca2fe1 commit c58547e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/admin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { config } from "@ideal-postcodes/jsutil";
import { Config } from "./extension";

import { bind as orders } from "./admin-orders";
import { bind as ordersEdit } from "./admin-orders-edit";
Expand All @@ -8,5 +9,5 @@ import { bind as custom } from "./admin-custom";
window.idpcStart = () =>
[orders, customers, ordersEdit, custom].forEach((bind) => {
const conf = config();
if (conf) bind(conf);
if (conf) bind(conf as Config);
});
3 changes: 2 additions & 1 deletion lib/store.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { config } from "@ideal-postcodes/jsutil";
import { Config } from "./extension";

import { bind as shipping } from "./shipping";
import { bind as billing } from "./billing";
Expand All @@ -9,6 +10,6 @@ import { bind as custom } from "./custom";
window.idpcStart = () => {
[shipping, billing, customer, multishipping, custom].forEach((bind) => {
const conf = config();
if (conf) bind(conf);
if (conf) bind(conf as Config);
});
};
2 changes: 1 addition & 1 deletion view/base/web/admin.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion view/base/web/binding.min.js

Large diffs are not rendered by default.

0 comments on commit c58547e

Please sign in to comment.