Files
StevenandGitHub d3e576dba3 fix: codemod should preserve type only import (#46512)
This PR is similar to PR #46460, but applies the patch to all our codemods.
2023-02-27 21:36:26 +00:00

22 lines
763 B
TypeScript

// @ts-nocheck
/* eslint-disable */
import Image from "next/image";
import Named from "next/image";
import type { ImageProps } from "next/image";
import { type ImageLoaderProps } from "next/image";
import Foo from "foo";
import Future1 from "next/future/image";
import Future2 from "next/future/image";
import type { ImageProps as ImageFutureProps } from "next/future/image";
import { type ImageLoaderProps as ImageFutureLoaderProps } from "next/future/image";
export default function Home() {
return (<div>
<h1>Both</h1>
<Image src="/test.jpg" width="200" height="300" />
<Named src="/test.png" width="500" height="400" />
<Future1 src="/test.webp" width="60" height="70" />
<Future2 src="/test.avif" width="80" height="90" />
</div>)
}