@nestjs/common
Version:
Decorators, pipes, exceptions and utilities for NestJS applications: @Controller(), @Injectable(), @Body(), ValidationPipe, HttpException and more.
19 lines (18 loc) • 530 B
TypeScript
/**
* 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;
}