Skip to content

Commit

Permalink
fix: use a type import
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Nov 2, 2023
1 parent 7013a85 commit cbdacfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/components/Image.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
import { getImage, type LocalImageProps, type RemoteImageProps } from 'astro:assets';
import { AstroError, AstroErrorData } from '../dist/core/errors/index.js';
import { HTMLAttributes } from '../types';
import type { HTMLAttributes } from '../types';
// The TypeScript diagnostic for JSX props uses the last member of the union to suggest props, so it would be better for
// LocalImageProps to be last. Unfortunately, when we do this the error messages that remote images get are complete nonsense
Expand Down

0 comments on commit cbdacfc

Please sign in to comment.