Skip to content

Commit

Permalink
Merge pull request #178 from seznam/atoms-types
Browse files Browse the repository at this point in the history
fix: missing typing in utils
  • Loading branch information
Filipoliko authored Sep 27, 2024
2 parents 7a7a6ea + 61f6742 commit 578cfd2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/kind-mails-reflect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ima/plugin-atoms": patch
---

Fix missing typing in Utils
6 changes: 0 additions & 6 deletions packages/plugin-atoms/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ import Visibility from './Visibility';

const defaultDependencies = ['$Router', ComponentPositions, Visibility];

declare module '@ima/core' {
interface OCAliasMap {
$UIComponentHelper: UIComponentHelper;
}
}

pluginLoader.register('@ima/plugin-atoms', ns => {
return {
initBind: (ns, oc) => {
Expand Down
4 changes: 4 additions & 0 deletions packages/plugin-atoms/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import type UIComponentHelper from './UIComponentHelper';

declare module '@ima/core' {
interface OCAliasMap {
$UIComponentHelper: UIComponentHelper;
}

interface Utils {
$UIComponentHelper: UIComponentHelper;
}
Expand Down

0 comments on commit 578cfd2

Please sign in to comment.