Skip to content

Commit

Permalink
fix!: Rename the message-pact state handler type to `MessageStateHand…
Browse files Browse the repository at this point in the history
…lers` from `StateHandlers` avoiding the conflicting type problem introduced in #882. Fixes #1057
  • Loading branch information
TimothyJones committed Feb 16, 2023
1 parent f2e430f commit 9be81ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dsl/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export interface MessageProviders {
[name: string]: MessageProvider;
}

export interface StateHandlers {
export interface MessageStateHandlers {
[name: string]: (
state: string,
params?: { [name: string]: string }
Expand Down
4 changes: 2 additions & 2 deletions src/dsl/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
import { VerifierOptions as PactCoreVerifierOptions } from '@pact-foundation/pact-core';
import { PactfileWriteMode } from './mockService';
import { MessageProviders, StateHandlers } from './message';
import { MessageProviders, MessageStateHandlers } from './message';

export type LogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error';

Expand Down Expand Up @@ -69,7 +69,7 @@ export interface MessageProviderOptions {
messageProviders: MessageProviders;

// Prepare any provider states
stateHandlers?: StateHandlers;
stateHandlers?: MessageStateHandlers;
}

type ExcludedPactNodeVerifierKeys = Exclude<
Expand Down

0 comments on commit 9be81ce

Please sign in to comment.