Skip to content

Commit

Permalink
Fix Image component export
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Nov 4, 2020
1 parent 8f7f101 commit 1b4271a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/next/client/image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type ImageData = {
domains?: string[]
}

type ImageProps = Omit<
export type ImageProps = Omit<
JSX.IntrinsicElements['img'],
'src' | 'srcSet' | 'ref' | 'width' | 'height' | 'loading' | 'style'
> & {
Expand Down Expand Up @@ -237,7 +237,7 @@ function getInt(x: unknown): number | undefined {
return undefined
}

export default function Image({
function Image({
src,
sizes,
unoptimized = false,
Expand Down Expand Up @@ -606,3 +606,5 @@ function defaultLoader({ root, src, width, quality }: LoaderProps): string {

return `${root}?url=${encodeURIComponent(src)}&w=${width}&q=${quality || 75}`
}

export default Image

0 comments on commit 1b4271a

Please sign in to comment.