summaryrefslogtreecommitdiff
path: root/examples/env-vars
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@skypack.dev> 2022-07-11 08:12:18 -0400
committerGravatar GitHub <noreply@github.com> 2022-07-11 08:12:18 -0400
commit21869a614a89446a25175e45580943c28ab7413c (patch)
tree9075b65027ca3641d9fb29a852cae3fe6e938fd7 /examples/env-vars
parent16fdc01322455204b6fea912bd4c1c7b5316e734 (diff)
downloadastro-21869a614a89446a25175e45580943c28ab7413c.tar.gz
astro-21869a614a89446a25175e45580943c28ab7413c.tar.zst
astro-21869a614a89446a25175e45580943c28ab7413c.zip
Move client types into Astro (#3851)
* Move client types into Astro * Adds a changeset * Fix path to local client * Reference vite/client in our HMR types * Add back in the expect-error * Update types comment
Diffstat (limited to 'examples/env-vars')
-rw-r--r--examples/env-vars/src/env.d.ts2
-rw-r--r--examples/env-vars/tsconfig.json4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/env-vars/src/env.d.ts b/examples/env-vars/src/env.d.ts
index 1cc8ccabc..35cb37076 100644
--- a/examples/env-vars/src/env.d.ts
+++ b/examples/env-vars/src/env.d.ts
@@ -1,4 +1,4 @@
-/// <reference types="vite/client" />
+/// <reference types="astro/client" />
interface ImportMetaEnv {
readonly DB_PASSWORD: string;
diff --git a/examples/env-vars/tsconfig.json b/examples/env-vars/tsconfig.json
index 7ac81809a..4db6ee701 100644
--- a/examples/env-vars/tsconfig.json
+++ b/examples/env-vars/tsconfig.json
@@ -9,7 +9,7 @@
"resolveJsonModule": true,
// Enable stricter transpilation for better output.
"isolatedModules": true,
- // Add type definitions for our Vite runtime.
- "types": ["vite/client"]
+ // Add type definitions for our Astro runtime.
+ "types": ["astro/client"]
}
}