Fix image integration's types not referring to the base types for Vite client types (#4534)
This commit is contained in:
parent
fc32e2d94c
commit
b8a80bc42d
2 changed files with 7 additions and 0 deletions
5
.changeset/blue-knives-collect.md
Normal file
5
.changeset/blue-knives-collect.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/image': patch
|
||||
---
|
||||
|
||||
Fix import.meta.env not being available when using the image integration's types
|
2
packages/integrations/image/client.d.ts
vendored
2
packages/integrations/image/client.d.ts
vendored
|
@ -1,3 +1,5 @@
|
|||
/// <reference types="astro/client-base" />
|
||||
|
||||
type InputFormat = 'avif' | 'gif' | 'heic' | 'heif' | 'jpeg' | 'jpg' | 'png' | 'tiff' | 'webp';
|
||||
|
||||
interface ImageMetadata {
|
||||
|
|
Loading…
Reference in a new issue