amqplib: properties of type Object changed to any

This commit is contained in:
abreits
2015-10-22 13:35:11 +02:00
parent 9d8cb89284
commit 16f5ce29bd
2 changed files with 6 additions and 4 deletions
+2
View File
@@ -24,6 +24,7 @@ amqp.connect("amqp://localhost")
// test promise api properties
var amqpMessage: amqp.Message;
amqpMessage.properties.contentType === "application/json";
var amqpAssertExchangeOptions: amqp.Options.AssertExchange;
var anqpAssertExchangeReplies: amqp.Replies.AssertExchange;
@@ -61,5 +62,6 @@ amqpcb.connect("amqp://localhost", (err, connection) => {
// test callback api properties
var amqpcbMessage: amqp.Message;
amqpMessage.properties.contentType === "application/json";
var amqpcbAssertExchangeOptions: amqp.Options.AssertExchange;
var anqpcbAssertExchangeReplies: amqp.Replies.AssertExchange;
+4 -4
View File
@@ -66,7 +66,7 @@ declare module "amqplib/properties" {
contentType?: string;
contentEncoding?: string;
headers?: Object;
headers?: any;
priority?: number;
correlationId?: string;
replyTo?: string;
@@ -81,7 +81,7 @@ declare module "amqplib/properties" {
noAck?: boolean;
exclusive?: boolean;
priority?: number;
arguments?: Object;
arguments?: any;
}
interface Get {
noAck?: boolean;
@@ -90,8 +90,8 @@ declare module "amqplib/properties" {
interface Message {
content: Buffer;
fields: Object;
properties: Object;
fields: any;
properties: any;
}
}