Skip to content

Commit

Permalink
fix: stateHandlers type for VerifierOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-styling committed Oct 4, 2023
1 parent 9bb0d10 commit 6c88184
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/dsl/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ export interface MessageProviders {
[name: string]: MessageProvider;
}

export interface MessageStateHandlers {
export interface MessageStateHandlers<T> {
[name: string]: (
state: string,
params?: { [name: string]: string }
) => Promise<unknown>;
) => Promise<T>;
}
2 changes: 1 addition & 1 deletion src/dsl/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export interface MessageProviderOptions {
messageProviders: MessageProviders;

// Prepare any provider states
stateHandlers?: MessageStateHandlers;
stateHandlers?: MessageStateHandlers<unknown>;
}

type ExcludedPactNodeVerifierKeys = Exclude<
Expand Down

0 comments on commit 6c88184

Please sign in to comment.