diff --git a/packages/next/src/build/webpack/plugins/next-types-plugin/index.ts b/packages/next/src/build/webpack/plugins/next-types-plugin/index.ts index 3d98e30cf6501..c2b1089df5b3f 100644 --- a/packages/next/src/build/webpack/plugins/next-types-plugin/index.ts +++ b/packages/next/src/build/webpack/plugins/next-types-plugin/index.ts @@ -107,19 +107,6 @@ if ('${method}' in entry) { '${method}' > >() - checkFields< - Diff< - { - __tag__: '${method}', - __return_type__: Response | Promise - }, - { - __tag__: '${method}', - __return_type__: ReturnType> - }, - '${method}' - > - >() } ` ).join('')