From a60972d5fe9d03e39dc47176147e7f333b7fc091 Mon Sep 17 00:00:00 2001 From: Victor Fernandez de Alba Date: Fri, 3 May 2024 22:56:29 +0200 Subject: [PATCH] Fix type for component registry components --- packages/registry/.eslintrc.js | 3 +++ packages/registry/src/index.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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/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;