In order to support Electron with Typescript, you will need to:
- Make sure that you are using
- Edit quasar.conf.js > supportTS. Set it to
trueor use the Object form.
- Rename the extension for your files in /src-electron from
.tsand make the necessary TS code changes.
electron-builder export their configuration types from their own packages. Since autocomplete into
quasar.conf.js relies on those types, properties
electron.builder will be fully typed only after the respective package is installed. You can force the installation of the selected bundler (depending on your
electron.bundler option) by running a build command in Electron mode:
quasar build -m electron
More info: Supporting TS