summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/integrations/image/README.md11
1 files changed, 9 insertions, 2 deletions
diff --git a/packages/integrations/image/README.md b/packages/integrations/image/README.md
index 48d7416ce..b2496b5e3 100644
--- a/packages/integrations/image/README.md
+++ b/packages/integrations/image/README.md
@@ -59,9 +59,16 @@ export default {
```
Then, restart the dev server.
-### Update `tsconfig.json`
+### Update `env.d.ts`
-For the best development experience, add the integrations type definitions to your project's `tsconfig.json` file.
+For the best development experience, add the integrations type definitions to your project's `env.d.ts` file.
+
+```typescript
+// Replace `astro/client` with `@astrojs/image/client`
+/// <reference types="@astrojs/image/client" />
+```
+
+Or, alternatively if your project is using the types through a `tsconfig.json`
```json
{