global.d.ts 702 B

1234567891011121314151617181920212223242526272829303132
  1. /// <reference types='@dcloudio/types' />
  2. import type { IeTool } from './utils/uni-tool';
  3. // 扩展全局 UniApp.Uni 接口
  4. declare global {
  5. interface Uni {
  6. $ie: IeTool;
  7. $uv: any;
  8. $zp: any;
  9. }
  10. }
  11. declare module 'pinia' {
  12. export interface DefineStoreOptionsBase<S, Store> {
  13. // 声明 persist 配置项
  14. persist?: {
  15. enabled?: boolean
  16. storage?: {
  17. getItem: <T = any>(key: string) => T;
  18. setItem: (key: string, value: any) => void;
  19. }
  20. paths?: string[],
  21. omit?: string[]
  22. }
  23. }
  24. }
  25. declare module "*.vue" {
  26. import type { DefineComponent } from "vue";
  27. const vueComponent: DefineComponent<{}, {}, any>;
  28. export default vueComponent;
  29. }