From c480b8f2c4a6282ccee706e9121ceacd91f5172b Mon Sep 17 00:00:00 2001 From: Vladislav Mamon Date: Fri, 1 Nov 2024 10:50:42 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/assets/types.ts | 10 ++++++---- packages/astro/src/type-utils.ts | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/astro/src/assets/types.ts b/packages/astro/src/assets/types.ts index 7b6b2893a0..8bf7a59593 100644 --- a/packages/astro/src/assets/types.ts +++ b/packages/astro/src/assets/types.ts @@ -66,10 +66,12 @@ export type SrcSetValue = UnresolvedSrcSetValue & { /** * A yet to be resolved image transform. Used by `getImage` */ -export type UnresolvedImageTransform = Simplify & { - src: ImageMetadata | string | Promise<{ default: ImageMetadata }>; - inferSize?: boolean; -}> & { +export type UnresolvedImageTransform = Simplify< + OmitPreservingIndexSignature & { + src: ImageMetadata | string | Promise<{ default: ImageMetadata }>; + inferSize?: boolean; + } +> & { [isESMImport]?: never; }; diff --git a/packages/astro/src/type-utils.ts b/packages/astro/src/type-utils.ts index cbb112f794..1aa816aadb 100644 --- a/packages/astro/src/type-utils.ts +++ b/packages/astro/src/type-utils.ts @@ -18,7 +18,7 @@ export type OmitIndexSignature = { // This is an alternative `Omit` implementation that _doesn't_ remove the index signature of an object. export type OmitPreservingIndexSignature = { - [P in keyof T as Exclude]: T[P] + [P in keyof T as Exclude]: T[P]; }; // Transform a string into its kebab case equivalent (camelCase -> kebab-case). Useful for CSS-in-JS to CSS.