botframeworkweb-chat

Type of values of createDirectLine parameters


I couldn't find, in the repository files, a place that specifies the type of value for the parameters of createDirectLine. Can someone help me with this?

I found only the type of fields domain, conversationId e webSocket


Solution

  • I found the props types here thanks to Steve Kanberg's comment

    The types of properties follow:

    export interface DirectLineOptions {
        secret?: string,
        token?: string,
        conversationId?: string,
        watermark?: string,
        domain?: string,
        webSocket?: boolean,
        pollingInterval?: number,
        streamUrl?: string,
        timeout?: number,
        botAgent?: string,
        conversationStartProperties?: any
    }