diff --git a/index.d.ts b/index.d.ts index 95f0bca..f309710 100644 --- a/index.d.ts +++ b/index.d.ts @@ -38,7 +38,7 @@ export interface RabQConfig { }; beforeHook?: (message: Message) => void; afterHook?: (message: Message, subscriberResult: Result) => void; - prePublish?: (routingkey: string, content: Record, properties?: MessageProperties) => void; + prePublish?: (routingkey: string, content: Record, properties?: Partial) => void; } interface Logger { @@ -71,7 +71,7 @@ interface Logger { export default class RabQ { start: () => Promise; stop: () => Promise; - publish: (routingkey: string, content: Record, properties?: MessageProperties) => void; + publish: (routingkey: string, content: Record, properties?: Partial) => void; subscribesTo: (patternMatch: RegExp, action: { do: (message: Message) => Result | Promise; }) => void;