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:
parent
ec376369a8
commit
36cb503c8a
1 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue