@@ -126,7 +126,7 @@ The project was originally created with [vue-cli](https://cli.vuejs.org/), but
126
126
has switched to [ Vite] ( https://vitejs.dev/ ) with the upgrade from Vue 2 to 3.
127
127
128
128
The configuration for how the app is served and built is defined in
129
- [ ` vite.config.js ` ] ( vite.config.js ) .
129
+ [ ` vite.config.ts ` ] ( vite.config.ts ) .
130
130
131
131
We are currently using the [ Vuetify component library] ( https://vuetifyjs.com/en/ ) .
132
132
Its configuration is defined in [ ` src/plugins/vuetify.js ` ] ( src/plugins/vuetify.js ) .
@@ -211,10 +211,22 @@ testing the development version much easier.
211
211
212
212
### TypeScript
213
213
214
- TypeScript is most likely the future for us. It can be adopted gradually.
215
- At the moment we only have JSDoc comments which can provide type information
214
+ We are starting to adopt TypeScript, so have a mixture of ` .ts ` and ` .js ` files.
215
+ Vue single-file-components can use ` <script lang="ts"> ` to enable TypeScript.
216
+ There are also JSDoc comments in ` .js ` files which can provide type information
216
217
in your IDE.
217
218
219
+ > [ !NOTE]
220
+ > Vite performs transpilation of TypeScript but does not perform type checking.
221
+ > It assumes type checking is taken care of by your IDE or a tool such as
222
+ > [ ` vue-tsc ` ] ( https://github.com/vuejs/language-tools/tree/master/packages/tsc )
223
+ > e.g. ` vue-tsc --noEmit --watch ` .
224
+
225
+ Useful resources:
226
+ - [ Using Vue with TypeScript] ( https://vuejs.org/guide/typescript/overview.html )
227
+ - [ Vite features - TypeScript] ( https://vitejs.dev/guide/features#typescript )
228
+ - [ TypeScript Handbook] ( https://www.typescriptlang.org/docs/handbook/intro.html )
229
+
218
230
## How The Data Is Provisioned
219
231
220
232
The Cylc UI connects to the GraphQL endpoint provided by the Cylc UI Server
0 commit comments