@nestjs/microservices
Version:
Microservices for NestJS: message and event handlers over Kafka, RabbitMQ, NATS, Redis, MQTT, gRPC or TCP.
18 lines (17 loc) • 811 B
TypeScript
import { IncomingEvent, IncomingRequest } from '../interfaces/index.js';
import { IncomingRequestDeserializer } from './incoming-request.deserializer.js';
type NatsMsg = any;
/**
* @publicApi
*/
export declare class NatsRequestJSONDeserializer extends IncomingRequestDeserializer {
deserialize(value: NatsMsg, options?: Record<string, any>): IncomingRequest | IncomingEvent | Promise<IncomingRequest> | Promise<IncomingEvent>;
/**
* A reply of a Nest server is not a message of an external system. On NATS
* the requester names the subject its reply is published on, so a reply
* can arrive on the subject of a handler. Mapped to the schema, it would
* reach that handler as an event; left as it is, `ServerNats` skips it.
*/
isExternal(value: any): boolean;
}
export {};