Commit e4db9ab2 authored by Tobias Koppers's avatar Tobias Koppers

Omit interopDefault from AppPageModule type

interopDefault is exported from the template only for the injected loader
tree code, not for use via ComponentMod in server code. Excluding it from
the type avoids requiring it in ComponentMod while keeping the export.
Co-Authored-By: 's avatarClaude <noreply@anthropic.com>
parent f309e925
......@@ -59,7 +59,13 @@ if (process.env.NEXT_RUNTIME !== 'edge') {
* The AppPageModule is the type of the module exported by the bundled app page
* module.
*/
export type AppPageModule = typeof import('../../../build/templates/app-page')
export type AppPageModule = Omit<
typeof import('../../../build/templates/app-page'),
// interopDefault is exported from the template for use by the injected loader
// tree code (see crates/next-core/src/app_page_loader_tree.rs), not for use
// via ComponentMod in server code.
'interopDefault'
>
type AppPageUserlandModule = {
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment