@nestjs/common
Version:
Nest - modern, fast, powerful node.js web framework (@common)
11 lines (10 loc) • 312 B
TypeScript
import { METHOD_METADATA } from '../../constants';
import { RequestMethod } from '../../enums/request-method.enum';
/**
* Declares this route as a Server-Sent-Events endpoint
*
* @publicApi
*/
export declare function Sse(path?: string, options?: {
[METHOD_METADATA]?: RequestMethod;
}): MethodDecorator;