Skip to content

Commit

Permalink
Update @astrojs/image README with mention of the new env.d.ts file (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh authored Aug 8, 2022
1 parent ec37636 commit 36cb503
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/integrations/image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 36cb503

Please sign in to comment.