TemplateImport class

Here is a data model that can help users understand and use the LG import definition in LG files easily.

Constructors

TemplateImport(string, string, SourceRange, string)

Creates a new instance of the TemplateImport class.

Properties

alias

Alias for templates. For example: import as myAlias.

description

Description of the import, what's included by '[]' in a lg file.

id

Id of this import.

sourceRange

origin root source of the import.

Methods

toString()

Constructor Details

TemplateImport(string, string, SourceRange, string)

Creates a new instance of the TemplateImport class.

new TemplateImport(description: string, id: string, sourceRange: SourceRange, alias?: string)

Parameters

description

string

Import description, which is in [].

id

string

Import id, which is a path, in ().

sourceRange
SourceRange

(xref:botbuilder-lg.SourceRange) of template.

alias

string

Imports alias.

Property Details

alias

Alias for templates. For example: import as myAlias.

alias?: string

Property Value

string

description

Description of the import, what's included by '[]' in a lg file.

description: string

Property Value

string

id

Id of this import.

id: string

Property Value

string

sourceRange

origin root source of the import.

sourceRange: SourceRange

Property Value

Method Details

toString()

function toString(): string

Returns

string