refactor: fix a few type inconsistencies (#5788)

This commit is contained in:
Joshua Chen 2021-10-27 17:53:08 +08:00 committed by GitHub
parent 075234851c
commit 72990726e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 28 additions and 20 deletions

View file

@ -189,7 +189,7 @@ function CollapsibleBase({
return (
<As
// @ts-expect-error: see https://twitter.com/sebastienlorber/status/1412784677795110914
// @ts-expect-error: the "too complicated type" is produced from "CollapsibleElementType" being a huge union
ref={collapsibleRef}
style={disableSSRStyle ? undefined : getSSRStyle(collapsed)}
onTransitionEnd={(e: React.TransitionEvent) => {