Skip to content

Commit 70e7286

Browse files
BahtyaBahtya
andauthored
fix: export missing TimeRange type (#2590)
* fix: export missing TimeRange type The TimeRange type is defined in shared/date/types.ts but was not re-exported from shared/index.ts, making it unavailable to consumers while the similar DateRange type is exported. Fixes #2589 Signed-off-by: bahtya <bahtyar153@qq.com> * fix: add TimeRange to date/index.ts re-export The shared/index.ts re-exports TimeRange from ./date, but TimeRange was missing from the date barrel (shared/date/index.ts). This caused a resolution failure. TimeRange is defined in shared/date/types.ts alongside DateRange and other date types, so it belongs in the same barrel export. Verified: build passes and TimeRange appears in dist/shared.d.ts. Bahtya --------- Signed-off-by: bahtya <bahtyar153@qq.com> Co-authored-by: Bahtya <bahtayr@gmail.com>
1 parent 68a490b commit 70e7286

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packages/core/src/shared/date/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export type {
3535
SegmentContentObj,
3636
SegmentPart,
3737
SegmentValueObj,
38+
TimeRange,
3839
TimeSegmentObj,
3940
TimeSegmentPart,
4041
} from './types'

packages/core/src/shared/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export * from './arrays'
22
export * from './browser'
33
export * from './clamp'
44
export { createContext } from './createContext'
5-
export { type DateRange, type DateStep, type DateValue, type SegmentPart, type TimeValue } from './date'
5+
export { type DateRange, type DateStep, type DateValue, type SegmentPart, type TimeRange, type TimeValue } from './date'
66
export { getActiveElement } from './getActiveElement'
77
export { handleAndDispatchCustomEvent } from './handleAndDispatchCustomEvent'
88
export { isValidVNodeElement } from './isValidVNodeElement'

0 commit comments

Comments
 (0)