@sentzunhat/zacatl
Version:
A modular, high-performance TypeScript microservice framework for Node.js, featuring layered architecture, dependency injection, and robust validation for building scalable APIs and distributed systems.
13 lines • 578 B
TypeScript
import type { FastifyInstance } from 'fastify';
import type { ApiServerPort, ProxyConfig } from './port';
import type { HookHandler, RouteHandler } from '../../../layers/application';
export declare class FastifyApiAdapter implements ApiServerPort {
private readonly server;
constructor(server: FastifyInstance);
registerRoute(handler: RouteHandler): void;
registerHook(handler: HookHandler): void;
registerProxy(config: ProxyConfig): void;
listen(port: number): Promise<void>;
getRawServer(): unknown;
}
//# sourceMappingURL=fastify-adapter.d.ts.map