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: https://github.com/microsoft/BotFramework-DirectLineJS/blob/bb3d7eec6cad81569032567c99a567b7d4b462fc/src/directLine.ts#L363

    Thanks @steve-kanberg.

    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
    }