From 6c88184c5ba7311b74155e0604401e1b1f4edd57 Mon Sep 17 00:00:00 2001 From: Ben Sterling <25365573+ben-styling@users.noreply.github.com> Date: Wed, 4 Oct 2023 15:18:53 +0100 Subject: [PATCH] fix: `stateHandlers` type for `VerifierOptions` --- src/dsl/message.ts | 4 ++-- src/dsl/options.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dsl/message.ts b/src/dsl/message.ts index e8e6d18e6..0db80538a 100644 --- a/src/dsl/message.ts +++ b/src/dsl/message.ts @@ -85,9 +85,9 @@ export interface MessageProviders { [name: string]: MessageProvider; } -export interface MessageStateHandlers { +export interface MessageStateHandlers { [name: string]: ( state: string, params?: { [name: string]: string } - ) => Promise; + ) => Promise; } diff --git a/src/dsl/options.ts b/src/dsl/options.ts index 9ced9f790..0522270d3 100644 --- a/src/dsl/options.ts +++ b/src/dsl/options.ts @@ -69,7 +69,7 @@ export interface MessageProviderOptions { messageProviders: MessageProviders; // Prepare any provider states - stateHandlers?: MessageStateHandlers; + stateHandlers?: MessageStateHandlers; } type ExcludedPactNodeVerifierKeys = Exclude<