diff --git a/packages/next/client/image.tsx b/packages/next/client/image.tsx index 74638933f446344..5174d5f3f5678c1 100644 --- a/packages/next/client/image.tsx +++ b/packages/next/client/image.tsx @@ -627,6 +627,7 @@ export default function Image({ data-nimg={layout} style={imgStyle} className={className} + // @ts-ignore - TODO: upgrade to `@types/react@17` loading={loading || 'lazy'} /> diff --git a/packages/next/types/index.d.ts b/packages/next/types/index.d.ts index b1bc5ea2e074451..4abaab83eb3cf9f 100644 --- a/packages/next/types/index.d.ts +++ b/packages/next/types/index.d.ts @@ -40,11 +40,6 @@ declare module 'react' { interface LinkHTMLAttributes extends HTMLAttributes { nonce?: string } - - // support - interface ImgHTMLAttributes extends HTMLAttributes { - loading?: 'auto' | 'eager' | 'lazy' - } } export type Redirect =