element-plus/packages/components/timeline/index.ts
dopamine 79938178dd
build: use vue-tsc to generate dts (#16111)
* build: use vue-tsc to generate dts

* reduce inline type declaration

* fix: type checking failed

* apply suggestions from code review

* address PR comments
2024-08-07 12:01:46 +08:00

17 lines
552 B
TypeScript

import { withInstall, withNoopInstall } from '@element-plus/utils'
import Timeline from './src/timeline'
import TimelineItem from './src/timeline-item.vue'
import type { SFCWithInstall } from '@element-plus/utils'
export const ElTimeline: SFCWithInstall<typeof Timeline> & {
TimelineItem: typeof TimelineItem
} = withInstall(Timeline, {
TimelineItem,
})
export default ElTimeline
export const ElTimelineItem: SFCWithInstall<typeof TimelineItem> =
withNoopInstall(TimelineItem)
export * from './src/timeline'
export * from './src/timeline-item'