feat: Add typings for uni-components

Add typings for the uni-components library to enable better type checking and editor support.
This commit is contained in:
Timothy Yin 2024-09-15 02:46:21 +08:00
parent ceb9636b42
commit f2f792aa12

2
components.d.ts vendored
View File

@ -8,7 +8,7 @@ export {}
declare module 'vue' { declare module 'vue' {
export interface GlobalComponents { export interface GlobalComponents {
PageWrapper: typeof import('./src/components/page-wrapper.vue')['default'] PageWrapper: typeof import('./src/components/page-wrapper.vue')['default']
Tabbar: typeof import('./src/components/Tabbar.vue')['default'] TabBar: typeof import('./src/components/TabBar.vue')['default']
WdButton: typeof import('wot-design-uni/components/wd-button/wd-button.vue')['default'] WdButton: typeof import('wot-design-uni/components/wd-button/wd-button.vue')['default']
WdCell: typeof import('wot-design-uni/components/wd-cell/wd-cell.vue')['default'] WdCell: typeof import('wot-design-uni/components/wd-cell/wd-cell.vue')['default']
WdCellGroup: typeof import('wot-design-uni/components/wd-cell-group/wd-cell-group.vue')['default'] WdCellGroup: typeof import('wot-design-uni/components/wd-cell-group/wd-cell-group.vue')['default']