company_website/src/vite-env.d.ts

13 lines
349 B
TypeScript

/// <reference types="vite/client" />
// 为了在模板中使用 $t 函数,我们需要扩展 Vue 的类型定义
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$t: (key: string) => string
}
}
// 为 TDesign 组件添加类型支持
declare module 'tdesign-vue-next' {
export * from 'tdesign-vue-next/es'
}