0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

Update @astrojs/image README with mention of the new env.d.ts file (#4206)

This commit is contained in:
Erika 2022-08-08 17:27:48 -04:00 committed by GitHub
parent ec376369a8
commit 36cb503c8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
{