Skip to content

Commit

Permalink
Fix type for component registry components (#6002)
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh authored May 3, 2024
1 parent 0fbeea4 commit 883d25a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/registry/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ module.exports = {
'plugin:import/recommended',
'plugin:import/typescript',
],
rules: {
'@typescript-eslint/no-explicit-any': 0,
},
},

// Node
Expand Down
1 change: 1 addition & 0 deletions packages/registry/news/6002.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix type for component registry components @sneridagh
2 changes: 1 addition & 1 deletion packages/registry/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type ConfigData = {
};

type GetComponentResult = {
component: React.ComponentType;
component: React.ComponentType<any>;
};

export type ConfigType = InstanceType<typeof Config>;
Expand Down

0 comments on commit 883d25a

Please sign in to comment.