diff --git a/packages/next/src/server/typescript/rules/server-boundary.ts b/packages/next/src/server/typescript/rules/server-boundary.ts index a71aec1de15373..943bb0c030f0b6 100644 --- a/packages/next/src/server/typescript/rules/server-boundary.ts +++ b/packages/next/src/server/typescript/rules/server-boundary.ts @@ -64,8 +64,11 @@ const serverBoundary = { const diagnostics: tsModule.Diagnostic[] = [] const exportClause = node.exportClause - if (exportClause && ts.isNamedExports(exportClause)) { + if (!node.isTypeOnly && exportClause && ts.isNamedExports(exportClause)) { for (const e of exportClause.elements) { + if (e.isTypeOnly) { + continue; + } if (!isFunctionReturningPromise(e, typeChecker, ts)) { diagnostics.push({ file: source,