From 20d12f8ef23c0437bcb6fb365092f8389b8992a6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 27 Aug 2023 23:57:23 +0800 Subject: [PATCH] chore(deps-dev): bump typescript from 5.1.6 to 5.2.2 (#44430) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps-dev): bump typescript from 5.1.6 to 5.2.2 Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.1.6 to 5.2.2. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/commits) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * bump typedoc * type: fix type * fix: fix * type: fix type --------- Signed-off-by: dependabot[bot] Signed-off-by: lijianan <574980606@qq.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: 栗嘉男 <574980606@qq.com> Co-authored-by: afc163 --- components/cascader/index.tsx | 11 ++++++----- components/image/index.tsx | 8 +++++--- components/message/index.tsx | 2 +- components/tabs/TabPane.ts | 4 ++-- package.json | 2 +- 5 files changed, 15 insertions(+), 12 deletions(-) diff --git a/components/cascader/index.tsx b/components/cascader/index.tsx index 23f48cfd6659..91d31f887561 100644 --- a/components/cascader/index.tsx +++ b/components/cascader/index.tsx @@ -1,5 +1,6 @@ 'use client'; +import * as React from 'react'; import LeftOutlined from '@ant-design/icons/LeftOutlined'; import LoadingOutlined from '@ant-design/icons/LoadingOutlined'; import RightOutlined from '@ant-design/icons/RightOutlined'; @@ -15,18 +16,18 @@ import type { import RcCascader from 'rc-cascader'; import type { Placement } from 'rc-select/lib/BaseSelect'; import omit from 'rc-util/lib/omit'; -import * as React from 'react'; -import genPurePanel from '../_util/PurePanel'; + import type { SelectCommonPlacement } from '../_util/motion'; import { getTransitionName } from '../_util/motion'; +import genPurePanel from '../_util/PurePanel'; import type { InputStatus } from '../_util/statusUtils'; import { getMergedStatus, getStatusClassNames } from '../_util/statusUtils'; import warning from '../_util/warning'; import { ConfigContext } from '../config-provider'; -import DisabledContext from '../config-provider/DisabledContext'; -import type { SizeType } from '../config-provider/SizeContext'; import DefaultRenderEmpty from '../config-provider/defaultRenderEmpty'; +import DisabledContext from '../config-provider/DisabledContext'; import useSize from '../config-provider/hooks/useSize'; +import type { SizeType } from '../config-provider/SizeContext'; import { FormItemInputContext } from '../form/context'; import useSelectStyle from '../select/style'; import useBuiltinPlacements from '../select/useBuiltinPlacements'; @@ -40,7 +41,7 @@ import useStyle from './style'; // - Hover opacity style // - Search filter match case -export { BaseOptionType, DefaultOptionType }; +export type { BaseOptionType, DefaultOptionType }; export type FieldNamesType = FieldNames; diff --git a/components/image/index.tsx b/components/image/index.tsx index fb87bacd55ca..e844cc069ccd 100644 --- a/components/image/index.tsx +++ b/components/image/index.tsx @@ -1,9 +1,11 @@ 'use client'; +import * as React from 'react'; import EyeOutlined from '@ant-design/icons/EyeOutlined'; import classNames from 'classnames'; -import RcImage, { type ImageProps } from 'rc-image'; -import * as React from 'react'; +import RcImage from 'rc-image'; +import type { ImageProps } from 'rc-image'; + import { getTransitionName } from '../_util/motion'; import { ConfigContext } from '../config-provider'; import defaultLocale from '../locale/en_US'; @@ -77,7 +79,7 @@ const Image: CompositionImage = (props) => { ); }; -export { ImageProps }; +export type { ImageProps }; Image.PreviewGroup = PreviewGroup; diff --git a/components/message/index.tsx b/components/message/index.tsx index 7d2f1fdf201a..d3216af7fccc 100755 --- a/components/message/index.tsx +++ b/components/message/index.tsx @@ -16,7 +16,7 @@ import PurePanel from './PurePanel'; import useMessage, { useInternalMessage } from './useMessage'; import { wrapPromiseFn } from './util'; -export { ArgsProps }; +export type { ArgsProps }; let message: GlobalMessage | null = null; diff --git a/components/tabs/TabPane.ts b/components/tabs/TabPane.ts index 6583651e32cf..4b252401bd3a 100644 --- a/components/tabs/TabPane.ts +++ b/components/tabs/TabPane.ts @@ -1,5 +1,5 @@ import type * as React from 'react'; -import type { TabPaneProps } from 'rc-tabs/lib/TabPanelList/TabPane'; +import type { TabPaneProps } from 'rc-tabs/es/TabPanelList/TabPane'; const TabPane: React.FC = () => null; @@ -7,6 +7,6 @@ if (process.env.NODE_ENV !== 'production') { TabPane.displayName = 'DeprecatedTabPane'; } -export { TabPaneProps }; +export type { TabPaneProps }; export default TabPane; diff --git a/package.json b/package.json index ca42f2ec7e38..659a1a052238 100644 --- a/package.json +++ b/package.json @@ -303,7 +303,7 @@ "terser": "^5.16.1", "ts-node": "^10.8.2", "typedoc": "^0.25.0", - "typescript": "~5.1.3", + "typescript": "~5.2.2", "vanilla-jsoneditor": "^0.18.0", "webpack-bundle-analyzer": "^4.1.0", "xhr-mock": "^2.4.1"