From 883d25a9dc4224fd4523348622074aa96d16fd2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Fern=C3=A1ndez=20de=20Alba?= Date: Fri, 3 May 2024 23:21:31 +0200 Subject: [PATCH] Fix type for component registry components (#6002) --- packages/registry/.eslintrc.js | 3 +++ packages/registry/news/6002.bugfix | 1 + packages/registry/src/index.ts | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 packages/registry/news/6002.bugfix diff --git a/packages/registry/.eslintrc.js b/packages/registry/.eslintrc.js index 92e60e8a55..b60637a973 100644 --- a/packages/registry/.eslintrc.js +++ b/packages/registry/.eslintrc.js @@ -54,6 +54,9 @@ module.exports = { 'plugin:import/recommended', 'plugin:import/typescript', ], + rules: { + '@typescript-eslint/no-explicit-any': 0, + }, }, // Node diff --git a/packages/registry/news/6002.bugfix b/packages/registry/news/6002.bugfix new file mode 100644 index 0000000000..9ef8144c11 --- /dev/null +++ b/packages/registry/news/6002.bugfix @@ -0,0 +1 @@ +Fix type for component registry components @sneridagh diff --git a/packages/registry/src/index.ts b/packages/registry/src/index.ts index d71a56560a..932f84bc01 100644 --- a/packages/registry/src/index.ts +++ b/packages/registry/src/index.ts @@ -27,7 +27,7 @@ export type ConfigData = { }; type GetComponentResult = { - component: React.ComponentType; + component: React.ComponentType; }; export type ConfigType = InstanceType;