Skip to content

@microsoft/agents-hosting-extensions-teams TeamsInfo.getTeamChannels wrongly typed #507

@neotrow

Description

@neotrow

TeamsInfo.getTeamChannels from @microsoft/agents-hosting-extensions-teams returns an object in the following format:

{
  conversations: [
    {
      id: '......'
    },
    {
      name: 'Second Channel',
      id: '.....'
    },
.....
  ]
}

but according to the typescript definition files it returns a Promise<ChannelInfo[]> where ChannelInfo is defined as

export interface ChannelInfo {
    /**
     * The ID of the channel.
     */
    id?: string;
    /**
     * The name of the channel.
     */
    name?: string;
    /**
     * The type of the channel.
     */
    type?: string;
}

Using version 0.6.18

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions