Entrypoints
The entrypoints module provides the root interfaces and instantiation hooks for the TypeScript Gateway. It acts as the primary boundary for embedding the gateway programmatically within Node.js applications or spinning it up via command-line execution. Requests enter the gateway lifecycle through the server and router instances initialized here.
Exports
Section titled “Exports”| Symbol | Kind | Signature | Purpose |
|---|---|---|---|
Gateway | class | class Gateway | Class export for Gateway. |
{ OpenApiDoc, OpenApiInfo } | type | type { OpenApiDoc, OpenApiInfo } from './core/openapi-generator.js' | Type export for { OpenApiDoc, OpenApiInfo }. |
Gateway
Section titled “Gateway”The Gateway class orchestrates server setup, configuration ingestion, and pipeline assembly.
OpenApiDoc
Section titled “OpenApiDoc”Exported OpenAPI types define contract structures when generating documentation from routes.
Source
Section titled “Source”src/index.tssrc/cli.ts