UNPKG

@nestjs/common

Version:

Nest - modern, fast, powerful node.js web framework (@common)

19 lines (18 loc) 530 B
/** * Interface describing the shape of a transport server. * Used as the return type of `getTransportServer()` to provide * autocomplete without creating circular dependencies. * * @publicApi */ export interface ITransportServer { /** * Starts the transport server. * @param callback Function to be called upon initialization */ listen(callback: (...optionalParams: unknown[]) => any): any; /** * Closes the transport server (stops listening on port/connection). */ close(): any; }