From 1ff65da254fa1b31446045ce3a64bd49a07330b2 Mon Sep 17 00:00:00 2001 From: Aarron Painter Date: Mon, 19 Feb 2024 15:45:30 +1300 Subject: [PATCH] Update accepted wrapper types --- reactular.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/reactular.tsx b/reactular.tsx index e51a7de..0a4eb8c 100644 --- a/reactular.tsx +++ b/reactular.tsx @@ -9,8 +9,7 @@ type OnChanges = { export const reactular = ( Component: React.ComponentType, bindingNames: Array = [], - // eslint-disable-next-line @typescript-eslint/no-explicit-any - wrapper?: string | React.FunctionComponent>, + wrapper?: string | React.FunctionComponent>, ): IComponentOptions => { const bindings: { [prop: string]: '<'; @@ -49,8 +48,7 @@ export const reactular = ( const Wrapper = typeof wrapper === 'string' ? this.$injector.get< - // eslint-disable-next-line @typescript-eslint/no-explicit-any - React.ComponentType> + React.FunctionComponent> >(wrapper) : wrapper;