You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For best TypeScript support in VS Code, see the official Vue guide: [Using Vue with TypeScript in VS Code](https://vuejs.org/guide/typescript/overview#using-vue-with-typescript).
8
17
9
18
## Type Support for `.vue` Imports in TS
10
19
11
-
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
20
+
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. For editor integration, see the official Vue guide: [Using Vue with TypeScript in VS Code](https://vuejs.org/guide/typescript/overview#using-vue-with-typescript).
12
21
13
-
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/vuejs/language-tools/discussions/471) that is more performant. You can enable it by the following steps:
14
22
15
-
1. Disable the built-in TypeScript Extension
16
-
1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
17
-
2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
18
-
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
23
+
> **Note:**
24
+
> To type-check your project, use:
25
+
> ```sh
26
+
> npm run type-check
27
+
>```
28
+
> This uses `vue-tsc` to provide type checking for`.vue` files, as recommendedin the [official Vue TypeScript guide](https://vuejs.org/guide/typescript/overview.html).
19
29
20
30
## Customize configuration
21
31
@@ -27,12 +37,31 @@ See [Vite Configuration Reference](https://vite.dev/config/).
27
37
npm install
28
38
```
29
39
40
+
## Code Structure
41
+
42
+
**Source Files:**
43
+
- `src/App.vue` - Main Vue application component with router
44
+
- `src/main.ts` - Application entry point
45
+
- `src/components/HomeContent.vue` - Example component with DevExtreme Button
The application will be available at `http://localhost:5173/`
64
+
36
65
### Type-Check, Compile and Minify for Production
37
66
38
67
```sh
@@ -53,5 +82,7 @@ npm run lint
53
82
### Further help
54
83
55
84
You can learn more about Vue in the [Vue documentation](https://vuejs.org/guide/introduction.html).
85
+
You can learn more about Vite in the [Vite documentation](https://vite.dev/).
86
+
You can learn more about DevExtreme Vue components in the [DevExtreme Vue documentation](https://js.devexpress.com/Vue/).
56
87
57
-
To get more help on DevExtreme submit an issue on [GitHub](https://github.com/DevExpress/devextreme/issues) or [Support Center](https://www.devexpress.com/Support/Center/Question/Create)
88
+
To get more help on DevExtreme submit an issue on [GitHub](https://github.com/DevExpress/devextreme/issues) or [Support Center](https://supportcenter.devexpress.com/ticket/create)
0 commit comments