diff options
author | 2022-08-08 17:27:48 -0400 | |
---|---|---|
committer | 2022-08-08 17:27:48 -0400 | |
commit | 36cb503c8a8ea7c312ac408ceac27ab279104a25 (patch) | |
tree | 9451beaab83dd3bd66c5c7731fdf5c99026d4b34 | |
parent | ec376369a84d20bc3079800ae8e8296c96fcf627 (diff) | |
download | astro-36cb503c8a8ea7c312ac408ceac27ab279104a25.tar.gz astro-36cb503c8a8ea7c312ac408ceac27ab279104a25.tar.zst astro-36cb503c8a8ea7c312ac408ceac27ab279104a25.zip |
Update @astrojs/image README with mention of the new env.d.ts file (#4206)
-rw-r--r-- | packages/integrations/image/README.md | 11 |
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 { |