Skip to content

Commit

Permalink
Update ImageMetadata type
Browse files Browse the repository at this point in the history
  • Loading branch information
andreilgeorgescu authored Oct 28, 2024
1 parent 84e5b70 commit a7c093c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/components/TechStackCard.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
---
import { Image, ImageMetadata } from "astro:assets";
import { Image } from "astro:assets";
interface ImageMetadata {
src: string;
width: number;
height: number;
format: "png" | "jpg" | "jpeg" | "tiff" | "webp" | "gif" | "svg" | "avif";
}
interface Props {
title: string;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/courses/_components/Feature.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface ImageMetadata {
src: string;
width: number;
height: number;
format: string;
format: "png" | "jpg" | "jpeg" | "tiff" | "webp" | "gif" | "svg" | "avif";
}
interface Props {
Expand Down

0 comments on commit a7c093c

Please sign in to comment.