Skip to content

Commit

Permalink
Merge pull request #58 from radiofrance/type-properties-partial
Browse files Browse the repository at this point in the history
Change type of properties param in publish to Partial
  • Loading branch information
zckrs authored Feb 6, 2023
2 parents 59bfe1d + 9b25989 commit 732feb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export interface RabQConfig {
};
beforeHook?: (message: Message) => void;
afterHook?: (message: Message, subscriberResult: Result) => void;
prePublish?: (routingkey: string, content: Record<any, any>, properties?: MessageProperties) => void;
prePublish?: (routingkey: string, content: Record<any, any>, properties?: Partial<MessageProperties>) => void;
}

interface Logger {
Expand Down Expand Up @@ -71,7 +71,7 @@ interface Logger {
export default class RabQ {
start: () => Promise<boolean>;
stop: () => Promise<boolean>;
publish: (routingkey: string, content: Record<any, any>, properties?: MessageProperties) => void;
publish: (routingkey: string, content: Record<any, any>, properties?: Partial<MessageProperties>) => void;
subscribesTo: (patternMatch: RegExp, action: {
do: (message: Message) => Result | Promise<Result>;
}) => void;
Expand Down

0 comments on commit 732feb9

Please sign in to comment.