Skip to content

Commit

Permalink
chore(types): fix vscode type check in *.jsx
Browse files Browse the repository at this point in the history
Resolved: DevCloudFE#1899
  • Loading branch information
fu050409 committed Jun 25, 2024
1 parent 69917a5 commit e544369
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
11 changes: 11 additions & 0 deletions packages/devui-vue/devui/shims-vue.d.ts
Original file line number Diff line number Diff line change
@@ -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;
}
}
}
8 changes: 4 additions & 4 deletions packages/devui-vue/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}

0 comments on commit e544369

Please sign in to comment.