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

23 lines
708 B
TypeScript

import { withInstall, withNoopInstall } from '@element-plus/utils'
import Breadcrumb from './src/breadcrumb.vue'
import BreadcrumbItem from './src/breadcrumb-item.vue'
import type { SFCWithInstall } from '@element-plus/utils'
export const ElBreadcrumb: SFCWithInstall<typeof Breadcrumb> & {
BreadcrumbItem: typeof BreadcrumbItem
} = withInstall(Breadcrumb, {
BreadcrumbItem,
})
export const ElBreadcrumbItem: SFCWithInstall<typeof BreadcrumbItem> =
withNoopInstall(BreadcrumbItem)
export default ElBreadcrumb
export * from './src/breadcrumb'
export * from './src/breadcrumb-item'
export * from './src/constants'
export type {
BreadcrumbInstance,
BreadcrumbItemInstance,
} from './src/instances'