mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
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:
parent
2af11fa862
commit
1a5308a826
@ -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)) {
|
||||
|
@ -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]);
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user