Skip to content

Commit

Permalink
fix: make onLoad optional in image props
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Webb authored and Brandon Webb committed Apr 4, 2022
1 parent f99cd9f commit e911943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export type MagnifiedImageProps = DetailedHTMLProps<ImgHTMLAttributes<HTMLImageE
export type ImageProps = Omit<DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, 'height' | 'width' | 'onLoad'> & {
height?: string | number;
width?: string | number;
onLoad: (e: Event) => void;
onLoad?: (e: Event) => void;
}

export interface LensProps extends HTMLProps<HTMLDivElement> {
Expand Down

0 comments on commit e911943

Please sign in to comment.