Skip to content

Commit

Permalink
Fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cdupuis committed Mar 16, 2021
1 parent 4e979d7 commit a91712f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/api-helper/machine/handlerRegistrations.ts
Expand Up @@ -463,7 +463,7 @@ export function toCommandListenerInvocation<P>(
}

const addressChannels = (msg, opts) => context.messageClient.respond(msg, opts);
const promptFor = sdm.parameterPromptFactory ? sdm.parameterPromptFactory(context) : NoParameterPrompt;
const promptFor = sdm.parameterPromptFactory ? sdm.parameterPromptFactory(context) : NoParameterPrompt as any;
const preferences = sdm.preferenceStoreFactory ? sdm.preferenceStoreFactory(context) : NoPreferenceStore;
const configuration = (((context || {}) as any) as ConfigurationAware).configuration;
return {
Expand Down
Expand Up @@ -28,7 +28,7 @@ export function fakeCommandListenerInvocation<P>(opts: Partial<CommandListenerIn
context: fakeContext(),
configuration: {},
addressChannels: AddressNoChannels,
promptFor: NoParameterPrompt,
promptFor: NoParameterPrompt as any,
preferences: NoPreferenceStore,
credentials: opts.credentials,
...opts,
Expand Down

0 comments on commit a91712f

Please sign in to comment.