Upgrades typescript to 4.9.4 (#6747)
* Upgrades typescript to 4.9.4 * Type fixes
This commit is contained in:
1 parent
3b838c475a
commit
16adf86c8c
19 files changed
+34
-25
No files matched your search
@@ -61,7 +61,7 @@ const LicenseRequired = ({ children, as = "", ...rest }: LicenseRequiredProps) =
|
||||
};
|
||||
|
||||
export const withLicenseRequired =
|
||||
<T,>(Component: ComponentType<T>) =>
|
||||
<T extends JSX.IntrinsicAttributes>(Component: ComponentType<T>) =>
|
||||
// eslint-disable-next-line react/display-name
|
||||
(hocProps: T) =>
|
||||
(
|
||||
|
||||
@@ -51,7 +51,7 @@ const LicenseRequired = ({ children, as = "", ...rest }: LicenseRequiredProps) =
|
||||
};
|
||||
|
||||
export const withLicenseRequired =
|
||||
<T,>(Component: ComponentType<T>) =>
|
||||
<T extends JSX.IntrinsicAttributes>(Component: ComponentType<T>) =>
|
||||
// eslint-disable-next-line react/display-name
|
||||
(hocProps: T) =>
|
||||
(
|
||||
|
||||
Reference in new issue
Block a user