]> git.otsuka.systems Git - cotsuka.github.io/commitdiff
fix layout type
authorCameron Otsuka <cameron@otsuka.haus>
Sat, 11 Apr 2026 01:17:31 +0000 (18:17 -0700)
committerCameron Otsuka <cameron@otsuka.haus>
Sat, 11 Apr 2026 01:17:31 +0000 (18:17 -0700)
src/components/ui/figure.astro

index 7b7813fb27260d0a6133e3876a941dfa9ed52997..0ed2c0709bd6e7772e6b3e8d08ab425a771469ab 100644 (file)
@@ -1,12 +1,12 @@
 ---
 import { Picture } from 'astro:assets';
-import type { ImageMetadata } from 'astro';
+import type { ImageLayout, ImageMetadata } from 'astro';
 
 interface Props {
   image: ImageMetadata;
   alt: string;
   formats?: string[];
-  layout?: string;
+  layout?: ImageLayout;
 }
 
 const { image, alt, formats = ['avif', 'webp'], layout } = Astro.props;