diff options
author | 2022-08-29 12:06:41 -0300 | |
---|---|---|
committer | 2022-08-29 12:06:41 -0300 | |
commit | b8a80bc42d5a254a66c32761e842841955c01450 (patch) | |
tree | 88585d730c1120fc837809e40b58e372bc3fcab6 | |
parent | fc32e2d94cf0eb19e5715055865d6bb200b8918c (diff) | |
download | astro-b8a80bc42d5a254a66c32761e842841955c01450.tar.gz astro-b8a80bc42d5a254a66c32761e842841955c01450.tar.zst astro-b8a80bc42d5a254a66c32761e842841955c01450.zip |
Fix image integration's types not referring to the base types for Vite client types (#4534)
Diffstat (limited to '')
-rw-r--r-- | .changeset/blue-knives-collect.md | 5 | ||||
-rw-r--r-- | packages/integrations/image/client.d.ts | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/.changeset/blue-knives-collect.md b/.changeset/blue-knives-collect.md new file mode 100644 index 000000000..06ceae786 --- /dev/null +++ b/.changeset/blue-knives-collect.md @@ -0,0 +1,5 @@ +--- +'@astrojs/image': patch +--- + +Fix import.meta.env not being available when using the image integration's types diff --git a/packages/integrations/image/client.d.ts b/packages/integrations/image/client.d.ts index 5809298ab..cafec4184 100644 --- a/packages/integrations/image/client.d.ts +++ b/packages/integrations/image/client.d.ts @@ -1,3 +1,5 @@ +/// <reference types="astro/client-base" /> + type InputFormat = 'avif' | 'gif' | 'heic' | 'heif' | 'jpeg' | 'jpg' | 'png' | 'tiff' | 'webp'; interface ImageMetadata { |