refactor(gateway): keep portal helper types private

This commit is contained in:
Peter Steinberger
2026-08-11 22:38:45 -07:00
parent b7a0d957fa
commit 753e17aebb
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ const HOP_BY_HOP_HEADERS = new Set([
"upgrade", "upgrade",
]); ]);
export type PortalProxyTarget = { type PortalProxyTarget = {
targetPort: number; targetPort: number;
token: string; token: string;
}; };
+2 -2
View File
@@ -8,7 +8,7 @@ import type { PortalSummary } from "../../../packages/gateway-protocol/src/index
import { listenGatewayHttpServer } from "../server/http-listen.js"; import { listenGatewayHttpServer } from "../server/http-listen.js";
import { handlePortalProxyRequest, handlePortalProxyUpgrade } from "./portal-http-proxy.js"; import { handlePortalProxyRequest, handlePortalProxyUpgrade } from "./portal-http-proxy.js";
export type PortalEntry = { type PortalEntry = {
id: string; id: string;
title: string; title: string;
description?: string; description?: string;
@@ -25,7 +25,7 @@ type PortalRuntimeEntry = {
upgradedSockets: Set<Duplex>; upgradedSockets: Set<Duplex>;
}; };
export type GatewayPortalOpenParams = { type GatewayPortalOpenParams = {
targetPort: number; targetPort: number;
title?: string; title?: string;
description?: string; description?: string;