Skip to content

Commit

Permalink
Merge pull request #1062 from TimothyJones/fix-message-types
Browse files Browse the repository at this point in the history
chore: Rename message's `StateHandlers` to `MessageStateHandlers`
  • Loading branch information
mefellows authored Mar 2, 2023
2 parents 8173f5b + 9be81ce commit 1241970
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 1241970

Please sign in to comment.