core-components,catalog-react: override type for forwardRef components

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-02-09 17:09:50 +01:00
parent e58af60d26
commit 56f20465b7
2 changed files with 2 additions and 2 deletions
@@ -509,7 +509,7 @@ export const SidebarItem = forwardRef<any, SidebarItemProps>((props, ref) => {
}
return <SidebarItemBase {...props} ref={ref} />;
});
}) as (props: SidebarItemProps) => JSX.Element;
type SidebarSearchFieldProps = {
onSearch: (input: string) => void;
@@ -87,4 +87,4 @@ export const EntityRefLink = forwardRef<any, EntityRefLinkProps>(
link
);
},
);
) as (props: EntityRefLinkProps) => JSX.Element;