From 79f04d281c3b7f8908498df58f4e3349e6222334 Mon Sep 17 00:00:00 2001 From: Princesseuh Date: Mon, 29 Aug 2022 10:37:39 -0300 Subject: [PATCH] Fix image integration's types not referring to the base types for Vite client types --- .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 000000000000..06ceae786d9a --- /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 5809298ab4a1..cafec4184c65 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 {