Skip to content

Commit b8a80bc

Browse files
authored
Fix image integration's types not referring to the base types for Vite client types (#4534)
1 parent fc32e2d commit b8a80bc

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/blue-knives-collect.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@astrojs/image': patch
3+
---
4+
5+
Fix import.meta.env not being available when using the image integration's types

packages/integrations/image/client.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/// <reference types="astro/client-base" />
2+
13
type InputFormat = 'avif' | 'gif' | 'heic' | 'heif' | 'jpeg' | 'jpg' | 'png' | 'tiff' | 'webp';
24

35
interface ImageMetadata {

0 commit comments

Comments
 (0)