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

17 lines
406 B
TypeScript

// @ts-nocheck
/* eslint-disable */
const Image = require("next/legacy/image");
const Named = require("next/legacy/image");
const Foo = require("foo");
export default function Home() {
return (
<div>
<h1>Upgrade</h1>
<Image src="/test.jpg" width="200" height="300" layout="fixed" />
<Named src="/test.png" width="400" height="500" layout="fixed" />
<Foo />
</div>
);
}