Skip to content

Some missing types at directline.d.ts #255

Description

@bivas6

Hi,
I'm using directline in my app, and I noticed some missing types:

  1. This code:
  this._directLine = new DirectLine(options);
  this._directLine.activity$
    .subscribe((activity) => console.log(activity.replyToId))

Returns this error:

  Property 'replyToId' does not exist on type 'Message'.ts(2339)

But it is exist in the docs: https://docs.microsoft.com/en-us/dotnet/api/microsoft.bot.schema.activity.replytoid?view=botbuilder-dotnet-stable

  1. This code:
  this._directLine.postActivity({  type: 'endOfConversation', text: '...' , ...});

Returns this error:

Type '"endOfConversation"' is not assignable to type '"message" | "event" | "typing"'.ts(2322)
directLine.d.ts(271, 5): The expected type comes from property 'type' which is declared here on type 'Activity'

But it is exist in the docs: https://docs.microsoft.com/en-us/dotnet/api/microsoft.bot.schema.activitytypes.endofconversation?view=botbuilder-dotnet-stable

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.ExemptFromDailyDRIReportUse this label to exclude the issue from the DRI report.customer-replied-toRequired for internal reporting. Do not delete.customer-reportedRequired for internal Azure reporting. Do not delete.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions