Open
Description
Clear and concise description of the problem
// components/index.ts
export { default as Table } from './Table'
export { default as Form} from './Form'
export default Button
vite.config.ts
export default defineConfig({
plugins: [
vue(),
components({
dirs: ['src/components/index.ts']
})
]
})
``
components.d.ts
```ts
declare module 'vue' {
export interface GlobalComponents {
Table: typeof import('./src/components/index.ts')['Table'],
Form: typeof import('./src/components/index.ts')['Form']
Button: typeof import('./src/components/index.ts')['default']
}
}
Suggested solution
no response
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.