diff --git a/src/dsl/message.ts b/src/dsl/message.ts index 34bbced3d..e8e6d18e6 100644 --- a/src/dsl/message.ts +++ b/src/dsl/message.ts @@ -85,7 +85,7 @@ export interface MessageProviders { [name: string]: MessageProvider; } -export interface StateHandlers { +export interface MessageStateHandlers { [name: string]: ( state: string, params?: { [name: string]: string } diff --git a/src/dsl/options.ts b/src/dsl/options.ts index e9840f99a..9ced9f790 100644 --- a/src/dsl/options.ts +++ b/src/dsl/options.ts @@ -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'; @@ -69,7 +69,7 @@ export interface MessageProviderOptions { messageProviders: MessageProviders; // Prepare any provider states - stateHandlers?: StateHandlers; + stateHandlers?: MessageStateHandlers; } type ExcludedPactNodeVerifierKeys = Exclude<