Przeglądaj źródła

修复block、template在IntrinsicElements未定义的提示

修复block、template在IntrinsicElements未定义的提示
gladtoeatu 1 rok temu
rodzic
commit
6b99490232
1 zmienionych plików z 7 dodań i 0 usunięć
  1. 7 0
      src/types/global.d.ts

+ 7 - 0
src/types/global.d.ts

@@ -14,3 +14,10 @@ declare const __UNI_PLATFORM__:
   | 'quickapp-webview-union'
 
 declare const __VITE_APP_PROXY__: 'true' | 'false'
+
+declare namespace JSX {
+  interface IntrinsicElements {
+    template: any
+    block: any
+  }
+}