Skip to content

Commit bb285a2

Browse files
committed
feat(create-quasar;docs): update src/env.d.ts
1 parent 684640a commit bb285a2

5 files changed

Lines changed: 8 additions & 2 deletions

File tree

create-quasar/templates/app/quasar-v2/js-vite-3/BASE/_package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@vue/eslint-config-prettier": "^10.2.0",
3737
"prettier": "^3.8.1",
3838
<% } %>
39-
"@quasar/app-vite": "^3.0.0-beta.1",
39+
"@quasar/app-vite": "^3.0.0-beta.2",
4040
"autoprefixer": "^10.4.27",
4141
"postcss": "^8.5.8"
4242
},

create-quasar/templates/app/quasar-v2/ts-vite-3/BASE/_package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<% } %>
4040
"@types/node": "^22.19.11",
4141
<% if (scope.preset.i18n) { %>"@intlify/unplugin-vue-i18n": "^11.0.0",<% } %>
42-
"@quasar/app-vite": "^3.0.0-beta.1",
42+
"@quasar/app-vite": "^3.0.0-beta.2",
4343
"autoprefixer": "^10.4.27",
4444
"typescript": "^5.9.3"
4545
},

create-quasar/templates/app/quasar-v2/ts-vite-3/BASE/src/env.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/// <reference types="@quasar/app-vite/client" />
2+
13
/**
24
* Uncomment and add types for your custom environment
35
* variables to avoid TypeScript errors

docs/src/pages/quasar-cli-vite/handling-import-meta-env.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ You will need to provide type definitions for your defines. Depending on where y
200200
- ...and so on for each Quasar CLI Mode
201201
202202
```ts Example with /src/env.d.ts
203+
/// <reference types="@quasar/app-vite/client" />
204+
203205
/**
204206
* Add types for your custom environment
205207
* variables to avoid TypeScript errors

docs/src/pages/quasar-cli-vite/supporting-ts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ You might want to check the requirements for it [here](/quasar-cli-vite/linter).
5656
If you chose TypeScript support when scaffolding the project, the following declaration file was automatically scaffolded for you. If TypeScript support wasn't enabled during project creation, create it:
5757

5858
```ts /src/env.d.ts
59+
/// <reference types="@quasar/app-vite/client" />
60+
5961
/**
6062
* Uncomment and add types for your custom environment
6163
* variables to avoid TypeScript errors

0 commit comments

Comments
 (0)