From 1b4271a49cbdd631d0530978758b62a2aecaf6dc Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 4 Nov 2020 17:11:22 -0500 Subject: [PATCH] Fix Image component export --- packages/next/client/image.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/next/client/image.tsx b/packages/next/client/image.tsx index f3164d711a02f..3bd2df65ed12a 100644 --- a/packages/next/client/image.tsx +++ b/packages/next/client/image.tsx @@ -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' > & { @@ -237,7 +237,7 @@ function getInt(x: unknown): number | undefined { return undefined } -export default function Image({ +function Image({ src, sizes, unoptimized = false, @@ -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