Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

botbuilder-teams does not work in TypeScript projects with the strict compilation option #168

Open
wictorwilen opened this issue Nov 21, 2018 · 1 comment
Assignees

Comments

@wictorwilen
Copy link

When using botbuilder-teams in a TypeScript/node.js project and you have strict type checking set to true, you get the following error:

node_modules/botbuilder-teams/lib/botbuilder-teams.d.ts:1308:63 - error TS2339: Property '0' does not exist on type '(ISubmitAction | IOpenUrlAction | IShowCardAction)[] | undefined'.

1308 export type IAdaptiveCardAction = ac.IAdaptiveCard['actions'][0];

In adaptivecards the actions property is defined as actions? - that is, it can be undefined - and that's why your type alias fails.

@bryceg
Copy link

bryceg commented Jul 24, 2019

Can a fix get pushed for this? Very annoying to not be able to use strict mode on projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants