From 6b2bb06f5672374e0da4fe33f0e99bd0e2a81896 Mon Sep 17 00:00:00 2001 From: feelgood-interface <78543720+feelgood-interface@users.noreply.github.com> Date: Mon, 28 Oct 2024 21:50:24 +0100 Subject: [PATCH] update readme (#865) Co-authored-by: Rodrigo --- packages/rabbitmq/README.md | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/packages/rabbitmq/README.md b/packages/rabbitmq/README.md index b92d46c8f..657d225ba 100644 --- a/packages/rabbitmq/README.md +++ b/packages/rabbitmq/README.md @@ -488,10 +488,10 @@ export class AppController { If you just want to publish a message onto a RabbitMQ exchange, use the `publish` method of the `AmqpConnection` which has the following signature: ```typescript -public publish( +public publish( exchange: string, routingKey: string, - message: T, + message: any, options?: amqplib.Options.Publish ) ``` @@ -500,14 +500,6 @@ For example: ```typescript amqpConnection.publish('some-exchange', 'routing-key', { msg: 'hello world' }); - -// optionally specify a type for generic type checking support -interface CustomModel { - foo: string; - bar: string; -} -amqpConnection.publish('some-exchange', 'routing-key', {}); -// this will now show an error that you are missing properties: foo, bar ``` ### Requesting Data from an RPC