chore(deps): update dependency typescript to ~5.5.0 (#49559)

* chore(deps): update dependency typescript to ~5.5.0

* fix: fix lint error

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: 栗嘉男 <574980606@qq.com>
This commit is contained in:
renovate[bot] 2024-06-23 14:57:41 +08:00 committed by GitHub
parent 2af11fa862
commit 1a5308a826
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ const Carousel = React.forwardRef<CarouselRef, CarouselProps>((props, ref) => {
[slickRef.current],
);
const prevCount = React.useRef(React.Children.count(props.children));
const prevCount = React.useRef<number>(React.Children.count(props.children));
React.useEffect(() => {
if (prevCount.current !== React.Children.count(props.children)) {

View File

@ -148,7 +148,7 @@ const InternalMenu = forwardRef<RcMenuRef, InternalMenuProps>((props, ref) => {
return cloneElement(mergedIcon, {
className: classNames(
`${prefixCls}-submenu-expand-icon`,
React.isValidElement(mergedIcon) ? mergedIcon.props?.className : undefined,
React.isValidElement<any>(mergedIcon) ? mergedIcon.props?.className : undefined,
),
});
}, [expandIcon, overrideObj?.expandIcon, menu?.expandIcon, prefixCls]);

View File

@ -319,7 +319,7 @@
"terser": "^5.31.1",
"tsx": "4.11.2",
"typedoc": "^0.26.0",
"typescript": "~5.4.5",
"typescript": "~5.5.0",
"vanilla-jsoneditor": "^0.23.7",
"vanilla-tilt": "^1.8.1",
"webpack": "^5.92.0",