type(Cell): use JSX.IntrinsicElements replace any (#43932)

This commit is contained in:
thinkasany 2023-08-03 12:18:57 +08:00 committed by GitHub
parent b2a3c48d4a
commit fb9c0562a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,8 @@ const Cell: React.FC<CellProps> = (props) => {
content,
colon,
} = props;
const Component = component as any;
const Component = component as keyof JSX.IntrinsicElements;
if (bordered) {
return (