From e0c79ec5dc05f035b1d17b970080db93b13378d4 Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Mon, 20 Mar 2023 11:23:46 +0800 Subject: [PATCH] type: export CountdownProps type (#41341) --- components/index.ts | 10 +++++----- components/statistic/index.tsx | 5 +++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/components/index.ts b/components/index.ts index 70e571aa09..1e851d3968 100644 --- a/components/index.ts +++ b/components/index.ts @@ -1,3 +1,4 @@ +export type { Breakpoint } from './_util/responsiveObserver'; export { default as Affix } from './affix'; export type { AffixProps } from './affix'; export { default as Alert } from './alert'; @@ -44,10 +45,10 @@ export { default as Drawer } from './drawer'; export type { DrawerProps } from './drawer'; export { default as Dropdown } from './dropdown'; export type { - DropdownProps, // typo, but we need to support it for backwards compatibility // https://github.com/ant-design/ant-design/pull/35161 DropdownProps as DropDownProps, + DropdownProps, } from './dropdown'; export { default as Empty } from './empty'; export type { EmptyProps } from './empty'; @@ -113,7 +114,7 @@ export type { SpaceProps } from './space'; export { default as Spin } from './spin'; export type { SpinProps } from './spin'; export { default as Statistic } from './statistic'; -export type { StatisticProps } from './statistic'; +export type { CountdownProps, StatisticProps } from './statistic'; export { default as Steps } from './steps'; export type { StepProps, StepsProps } from './steps'; export { default as Switch } from './switch'; @@ -122,8 +123,8 @@ export { default as Table } from './table'; export type { ColumnGroupType as TableColumnGroupType, ColumnProps as TableColumnProps, - ColumnsType as TableColumnsType, ColumnType as TableColumnType, + ColumnsType as TableColumnsType, TablePaginationConfig, TableProps, } from './table'; @@ -145,8 +146,8 @@ export { default as Transfer } from './transfer'; export type { TransferProps } from './transfer'; export { default as Tree } from './tree'; export type { - AntTreeNodeProps as TreeNodeProps, DataNode as TreeDataNode, + AntTreeNodeProps as TreeNodeProps, TreeProps, } from './tree'; export { default as TreeSelect } from './tree-select'; @@ -158,4 +159,3 @@ export type { UploadFile, UploadProps } from './upload'; export { default as version } from './version'; export { default as Watermark } from './watermark'; export type { WatermarkProps } from './watermark'; -export type { Breakpoint } from './_util/responsiveObserver'; diff --git a/components/statistic/index.tsx b/components/statistic/index.tsx index d9dd108202..ac430bb189 100644 --- a/components/statistic/index.tsx +++ b/components/statistic/index.tsx @@ -1,5 +1,6 @@ -import Statistic from './Statistic'; +import type { CountdownProps } from './Countdown'; import type { StatisticProps } from './Statistic'; +import Statistic from './Statistic'; -export type { StatisticProps }; +export type { StatisticProps, CountdownProps }; export default Statistic;