Skip to content

Commit

Permalink
Update accepted wrapper types
Browse files Browse the repository at this point in the history
  • Loading branch information
aarr0n committed Feb 19, 2024
1 parent 7aff1ca commit 1ff65da
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions reactular.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ type OnChanges<T> = {
export const reactular = <Props extends object>(
Component: React.ComponentType<Props>,
bindingNames: Array<keyof Props> = [],
// eslint-disable-next-line @typescript-eslint/no-explicit-any
wrapper?: string | React.FunctionComponent<React.PropsWithChildren<any>>,
wrapper?: string | React.FunctionComponent<React.PropsWithChildren<{}>>,
): IComponentOptions => {
const bindings: {
[prop: string]: '<';
Expand Down Expand Up @@ -49,8 +48,7 @@ export const reactular = <Props extends object>(
const Wrapper =
typeof wrapper === 'string'
? this.$injector.get<
// eslint-disable-next-line @typescript-eslint/no-explicit-any
React.ComponentType<React.PropsWithChildren<any>>
React.FunctionComponent<React.PropsWithChildren<{}>>
>(wrapper)
: wrapper;

Expand Down

0 comments on commit 1ff65da

Please sign in to comment.