diff --git a/packages/devui-vue/devui/shims-vue.d.ts b/packages/devui-vue/devui/shims-vue.d.ts new file mode 100644 index 0000000000..ca42fdc7de --- /dev/null +++ b/packages/devui-vue/devui/shims-vue.d.ts @@ -0,0 +1,11 @@ +// devui/shims-vue.d.ts +import { VNode } from 'vue'; + +declare type VueNode = VNode; +declare global { + namespace JSX { + interface IntrinsicElements { + [elem: string]: unknown; + } + } +} diff --git a/packages/devui-vue/tsconfig.json b/packages/devui-vue/tsconfig.json index ed11a5080a..dfa271717a 100644 --- a/packages/devui-vue/tsconfig.json +++ b/packages/devui-vue/tsconfig.json @@ -6,17 +6,17 @@ "strict": true, "jsx": "preserve", "sourceMap": true, - "lib": ["esnext", "dom","DOM.Iterable"], - "types": ["vite/client", "jest","node"], + "lib": ["esnext", "dom", "DOM.Iterable"], + "types": ["vite/client", "jest", "node"], "esModuleInterop": true, "plugins": [{ "name": "@vuedx/typescript-plugin-vue" }], "paths": { "hooks/*": ["./devui/shared/hooks/*"], "@devui/shared/components/*": ["./devui/*"], - "@devui/*": ["./devui/*"], + "@devui/*": ["./devui/*"] }, "declaration": true, - "declarationDir": "build/types", + "declarationDir": "build/types" }, "include": ["devui/**/*.ts", "devui/**/*.d.ts", "devui/**/*.tsx", "devui/**/*.vue"] }