From b4be678e35e2683f670fc17438434ce6b923468a Mon Sep 17 00:00:00 2001 From: Steven Date: Tue, 10 Aug 2021 20:13:35 -0400 Subject: [PATCH] Remove duplicate type for StaticImageData (#27931) Follow up to #27916 This interface was defined twice so I removed the private one and kept the global/public one. https://github.com/vercel/next.js/blob/eb871d30915d668dd9ba897d4d04ced207ce2e6d/packages/next/image-types/global.d.ts#L4-L9 https://github.com/vercel/next.js/blob/b881d65c1289aada030fdbe0b5b70ebf98bcb54c/packages/next/client/image.tsx#L60-L65 --- packages/next/client/image.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/next/client/image.tsx b/packages/next/client/image.tsx index 0a862497ebc1a..5752d6d900629 100644 --- a/packages/next/client/image.tsx +++ b/packages/next/client/image.tsx @@ -57,13 +57,6 @@ type OnLoadingComplete = (result: { type ImgElementStyle = NonNullable -interface StaticImageData { - src: string - height: number - width: number - blurDataURL?: string -} - interface StaticRequire { default: StaticImageData }