Skip to content

ConfigurationBotFrameworkAuthentication errors when initialized with process.env #4853

@rido-min

Description

@rido-min

Versions

"botbuilder": "~4.23.0",

Describe the bug

When using

new ConfigurationBotFrameworkAuthentication(process.env) like in this sample

https://github.com/microsoft/BotBuilder-Samples/blob/6952b9e548038d58e3c8cd607acaa72dcf7648a0/samples/javascript_nodejs/45.state-management/index.js#L35

I got errors from VSCode when enabling ts-check, or when trying to use TypeScript.

Type 'ProcessEnv' has no properties in common with type '{ BotOpenIdMetadata?: string | undefined; ChannelService?: string | undefined; OAuthApiEndpoint?: string | undefined; CertificateThumbprint?: string | undefined; CertificatePrivateKey?: string | undefined; ... 9 more ...; CallerId?: string | undefined; }'.

To Reproduce

Steps to reproduce the behavior:

  1. Go to BotBuilder-Samples/samples/javascript_nodejs/45.state-management/index.js
  2. Add ts-check to index.js

Expected behavior

Provided declaration types should match expected usage

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or an unintended behavior.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions