shims-vue.d.ts 665 B

123456789101112131415161718192021
  1. /// <reference types="vite/client" />
  2. interface FrameRequestCallback {
  3. (time: number): void;
  4. }
  5. declare interface Window {
  6. webkitCancelAnimationFrame(handle: number): void;
  7. webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
  8. }
  9. declare module '*.vue' {
  10. import type { DefineComponent } from 'vue';
  11. const component: DefineComponent<{}, {}, any>;
  12. export default component;
  13. }
  14. declare module '@tarojs/components/dist-h5/vue3/components/scroll-view.js';
  15. declare module '@tarojs/components/mini/index.js';
  16. declare module '*.md' {
  17. import type { ComponentOptions } from 'vue';
  18. const Component: ComponentOptions;
  19. export default Component;
  20. }