From 36cb503c8a8ea7c312ac408ceac27ab279104a25 Mon Sep 17 00:00:00 2001 From: Erika <3019731+Princesseuh@users.noreply.github.com> Date: Mon, 8 Aug 2022 17:27:48 -0400 Subject: [PATCH] Update @astrojs/image README with mention of the new env.d.ts file (#4206) --- packages/integrations/image/README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/integrations/image/README.md b/packages/integrations/image/README.md index 48d7416ce4..b2496b5e39 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` +/// +``` + +Or, alternatively if your project is using the types through a `tsconfig.json` ```json {