shims-uni.d.ts 480 B

1234567891011121314151617
  1. /*
  2. * @Author: wjc
  3. * @Date: 2025-04-09 10:19:11
  4. * @LastEditors: wjc
  5. * @LastEditTime: 2026-01-16 14:34:14
  6. * @Description: 扩展 uni-app 类型定义
  7. */
  8. // / <reference types='@dcloudio/types' />
  9. import 'vue'
  10. declare module '@vue/runtime-core' {
  11. type Hooks = App.AppInstance & Page.PageInstance
  12. interface ComponentCustomOptions extends Hooks, ComponentOptions.VueOptions {}
  13. interface ComponentCustomProperties {
  14. $tt?: (template: string, data?: any) => string
  15. }
  16. }