From b8a80bc42d5a254a66c32761e842841955c01450 Mon Sep 17 00:00:00 2001 From: Erika <3019731+Princesseuh@users.noreply.github.com> Date: Mon, 29 Aug 2022 12:06:41 -0300 Subject: [PATCH] Fix image integration's types not referring to the base types for Vite client types (#4534) --- .changeset/blue-knives-collect.md | 5 +++++ packages/integrations/image/client.d.ts | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/blue-knives-collect.md 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 @@ +/// + type InputFormat = 'avif' | 'gif' | 'heic' | 'heif' | 'jpeg' | 'jpg' | 'png' | 'tiff' | 'webp'; interface ImageMetadata {