Skip to content

Commit

Permalink
found the right syntax to import astro-jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Sullivan committed Jul 8, 2022
1 parent c237182 commit b402b6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1,092 deletions.
6 changes: 3 additions & 3 deletions packages/integrations/image/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference path="../types/astro-jsx.d.ts" />
/// <reference types="astro/astro-jsx" />
export type { Image, Picture } from '../components/index.js';
export * from './index.js';

Expand Down Expand Up @@ -73,8 +73,8 @@ export interface TransformOptions {
aspectRatio?: number | `${number}:${number}`;
}

export type ImageAttributes = astroHTML.JSX.HTMLAttributes<HTMLPictureElement>;
export type PictureAttributes = astroHTML.JSX.HTMLAttributes<HTMLPictureElement>;
export type ImageAttributes = astroHTML.JSX.ImgHTMLAttributes;
export type PictureAttributes = astroHTML.JSX.HTMLAttributes;

export interface HostedImageService<T extends TransformOptions = TransformOptions> {
/**
Expand Down
Loading

0 comments on commit b402b6a

Please sign in to comment.