element-plus/packages/components/carousel/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

22 lines
668 B
TypeScript

import { withInstall, withNoopInstall } from '@element-plus/utils'
import Carousel from './src/carousel.vue'
import CarouselItem from './src/carousel-item.vue'
import type { SFCWithInstall } from '@element-plus/utils'
export const ElCarousel: SFCWithInstall<typeof Carousel> & {
CarouselItem: typeof CarouselItem
} = withInstall(Carousel, {
CarouselItem,
})
export default ElCarousel
export const ElCarouselItem: SFCWithInstall<typeof CarouselItem> =
withNoopInstall(CarouselItem)
export * from './src/carousel'
export * from './src/carousel-item'
export * from './src/constants'
export type { CarouselInstance, CarouselItemInstance } from './src/instance'