diff --git a/src/types.ts b/src/types.ts index fe146549..0535a7cd 100644 --- a/src/types.ts +++ b/src/types.ts @@ -73,7 +73,7 @@ export type MagnifiedImageProps = DetailedHTMLProps, HTMLImageElement>, 'height' | 'width' | 'onLoad'> & { height?: string | number; width?: string | number; - onLoad: (e: Event) => void; + onLoad?: (e: Event) => void; } export interface LensProps extends HTMLProps {